Show: Delphi C++
Display Preferences

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

TPageControl is a set of pages used to make a multiple page dialog box.

Use TPageControl to create a multiple page dialog or tabbed notebook. TPageControl displays multiple overlapping pages that are TTabSheet objects. The user selects a page by clicking the page's tab that appears at the top of the control. To add a new page to a TPageControl object at design time, right-click the TPageControl object and choose New Page.

You can define an accelerator key to a page of the TPageControl. To define the accelerator key use the Caption property of the TTabSheet control.

To create a tabbed control that uses only a single body portion (page), use TTabControl instead.

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

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance