From Appmethod Libraries
Jump to: navigation, search


Object Pascal

TTabControl = class(TStyledControl, IItemsContainer, IGlyph)


class PASCALIMPLEMENTATION TTabControl : public Fmx::Controls::TStyledControl


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


TTabControl is a tab set that has the appearance of notebook dividers.

Use TTabControl to add a control with multiple tab settings to a FireMonkey form. When the current tab changes, the tab control must directly update its contents to reflect the change, in an OnChange event handler.

Disabling a TTabControl object disables all tabs at once. To enable or disable specific tabs, you can programmatically use the Tabs property as in the following code snippet where the tab with the index of 1 is rendered as disabled:

  TabControl1.Tabs[1].Enabled := False;

Use TTabControl to create rich graphical interfaces with great functionality, such as options and configurations for a specific application.

Code Examples

See Also