FMX.TabControl.TChangeTabAction

Delphi
TChangeTabAction = class(TTabControlAction)
C++
class PASCALIMPLEMENTATION TChangeTabAction : public TTabControlAction
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FMX.TabControl.pas FMX.TabControl.hpp |
FMX.TabControl | FMX.TabControl |
Description
Implements the standard action switching the focus to the specified tab.
The TChangeTabAction action sets active the specified Tab using the switching transition specified by Transition and Direction. Animation of the switch transition depends on mutual positions of the current focused tab and the specified tab. See the discussion in GotoVisibleTab.
To assign the TChangeTabAction action to a component (control, menu item, toolbar button), select the component, for example a button. Select the Action node in the Object Inspector, click the down arrow on the right, and assign New Standard Action > Tab > TChangeTabAction to the Action property. To set the destination Tab tab, in the Object Inspector, expand the Action node, select the Tab item, and click the down arrow on the right. From the list, select a destination tab.
Notice that the destination tab item can be any tab control in the application.
Notice that if the specified switching transition is impossible, for example, if the specified destination tab item (belonging to other tab control) is already active, then the TChangeTabAction action is shown disabled.
By default, the component caption changes to Go to SelectedTabItem.
See Also
- FMX.TabControl.TChangeTabAction.Tab
- FMX.TabControl.TChangeTabAction.Transition
- FMX.TabControl.TChangeTabAction.Direction
- FMX.TabControl.TTabControl.GotoVisibleTab
- FMX.TabControl.TTabControl.SetActiveTabWithTransition