From RAD Studio API Documentation
Jump to: navigation, search



TChangeTabAction = class(TTabControlAction)


class PASCALIMPLEMENTATION TChangeTabAction : public TTabControlAction


Type Visibility Source Unit Parent
class public
FMX.TabControl FMX.TabControl


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

Code Examples