From RAD Studio API Documentation
Jump to: navigation, search



TPreviousTabAction = class(TTabControlAction)


class PASCALIMPLEMENTATION TPreviousTabAction : public TTabControlAction


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


Implements the standard action switching the focus to the previous tab from the currently active tab, in the specified tab control.

The TPreviousTabAction action sets active the tab that is the previous to the currently active tab, in the specified tab control.

TPreviousTabAction switching action uses the switching transition animation specified by the Transition and Direction properties. See the discussion in GotoVisibleTab.

To assign the TPreviousTabAction 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 > TPreviousTabAction to the Action property. To set the TabControl tab control in which to make switching of active tabs, in the Object Inspector, expand the Action node, select the TabControl item, and click the down arrow on the right. From the list, select the desired tab control.

Notice that if the specified switching transition is impossible, for example, if the currently active tab is the first one in the specified tab control, then the TPreviousTabAction action is shown disabled.

By default, the component caption changes to Previous.

See Also

Code Examples