Show: Delphi C++
Display Preferences

Vcl.ComCtrls.TTabControl

From RAD Studio API Documentation
Jump to: navigation, search

Vcl.ComCtrls.TCustomTabControlVcl.Controls.TWinControlVcl.Controls.TControlSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTTabControl

Delphi

TTabControl = class(TCustomTabControl)

C++

class PASCALIMPLEMENTATION TTabControl : public TCustomTabControl

Properties

Type Visibility Source Unit Parent
class public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls Vcl.ComCtrls

Description

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

Use TTabControl to add a control with multiple tab settings to a form. Unlike a page control, TTabControl is not made up of several pages that contain different controls. Instead, TTabControl is a single object. 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 because it is one control. To disable individual tabs, use TPageControl and disable the individual TTabSheet controls that represent the pages.

Note: When using one of the page controls, if you want to restrict a user from switching to a tab, you cannot set TTabSheet.Enabled to false to accomplish that restriction. Instead, use the OnChanging event to prevent the user from selecting a tab.

The Tabs property can be used to define an accelerator key to a tab item of the TTabControl.

See Also

Code Examples and Samples

Personal tools
In Other Languages
Previous Versions
Assistance