Description | Hierarchy | Fields | Methods | Properties |
type TGUITabControl = class(TGUIElement)
A standard tab control.
![]() |
function AddTab(const Caption: StringType; ID: LongInt = -1): TGUITab; inline; |
![]() |
function GetTab(Index: LongInt): TGUITab; inline; |
![]() |
function SetActiveTab(Tab: TGUIElement): Boolean; inline; |
![]() |
property ActiveTab: LongInt read GetActiveTab write SetActiveTabByIndex; |
![]() |
property TabCount: LongInt read GetTabCount; |
![]() |
property TabExtraWidth: LongInt read GetTabExtraWidth write SetTabExtraWidth; |
![]() |
property TabHeight: LongInt read GetTabHeight write SetTabHeight; |
![]() |
property TabMaxWidth: LongInt read GetTabMaxWidth write SetTabMaxWidth; |
![]() |
property TabVerticalAlignment: TGUIAlignment read GetTabVerticalAlignment
write SetTabVerticalAlignment; |
![]() |
function AddTab(const Caption: StringType; ID: LongInt = -1): TGUITab; inline; |
Adds a new tab. Parameters
ReturnsThe new tab on success, nil on failure. |
![]() |
function GetTab(Index: LongInt): TGUITab; inline; |
Fetches a tab based on its index. Parameters
ReturnsThe tab on success, nil if there is no such object. |
![]() |
function SetActiveTab(Tab: TGUIElement): Boolean; inline; |
Sets the active tab directly. Parameters
ReturnsTrue if successful, false otherwise. |
![]() |
property ActiveTab: LongInt read GetActiveTab write SetActiveTabByIndex; |
The index of the active tab. |
![]() |
property TabCount: LongInt read GetTabCount; |
The number of tabs in this control. |
![]() |
property TabExtraWidth: LongInt read GetTabExtraWidth write SetTabExtraWidth; |
The extra width added to tabs on each side of the text. |
![]() |
property TabHeight: LongInt read GetTabHeight write SetTabHeight; |
The height of a tab. |
![]() |
property TabMaxWidth: LongInt read GetTabMaxWidth write SetTabMaxWidth; |
The maximal width of a tab. |
![]() |
property TabVerticalAlignment: TGUIAlignment read GetTabVerticalAlignment
write SetTabVerticalAlignment; |
The tab's vertical alignment, which can be either gaUpperLeft or gaLowerRight. |