Vcl.ComCtrls.TCustomTabControl.TabIndex
Delphi
property TabIndex: Integer read GetTabIndex write SetTabIndex default -1;
C++
__property int TabIndex = {read=GetTabIndex, write=SetTabIndex, default=-1};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomTabControl |
Description
Identifies the selected tab on a tab control.
Read TabIndex to determine which tab was selected by the user. TabIndex is the index of the tab in the list of labels maintained by the Tabs property. The first (leftmost) tab has a TabIndex of 0, the next has 1, and so on. If no tabs are selected, TabIndex has a value of -1.
Set TabIndex to programmatically change the selected tab in the tab control.
See Also
Code Examples