API:Vcl.ComCtrls.TPageControl

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

TPageControl = class(TCustomTabControl)

C++

class PASCALIMPLEMENTATION TPageControl : public TCustomTabControl

Properties

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

Description

TCustomTabControl is the base type for tab control components such as TTabControl and TPageControl.

Vcl.ComCtrls.TPageControl inherits from Vcl.ComCtrls.TCustomTabControl. All content below this line refers to Vcl.ComCtrls.TCustomTabControl.

TCustomTabControl is the base type for tab control components such as TTabControl and TPageControl.

Use TCustomTabControl as a base class when defining a control that includes a set of notebook style tabs across the top. TCustomTabControl introduces many properties, methods, and events to manage appearance and behavior of the tabs, and to respond when the user selects one of the tabs.

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.

See Also