FMX.TabControl.TTabControl.SetActiveTabWithTransition
Delphi
procedure SetActiveTabWithTransition(const ATab: TTabItem; const ATransition: TTabTransition; const ADirection: TTabTransitionDirection = TTabTransitionDirection.Normal);
C++
void __fastcall SetActiveTabWithTransition(TTabItem* const ATab, const TTabTransition ATransition, const TTabTransitionDirection ADirection = (TTabTransitionDirection)(0x0));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.TabControl.pas FMX.TabControl.hpp |
FMX.TabControl | TTabControl |
Description
Sets the focused tab using the specified transition.
SetActiveTabWithTransition sets the currently active tab to ATab
using the specified ATransition
and ADirection
transition parameters.
ATransition
specifies the type of transition used to switch the tab. When ATransition = Slide
, then the tab control uses visual animation for the switching action. That is, moving of contents in the switched tabs is animated.
ADirection
specifies the direction in which the content of the current active tab is replaced with the content of the specified ATab
tab. ADirection
is taken into account only when ATransition = Slide
. If ADirection = Normal
, then the forward left-to-right tab items switching transition animation is used. If ADirection = Reversed
, then the backward right-to-left tab items switching transition animation is used. The default is Normal
.
Compare with GotoVisibleTab.