From RAD Studio API Documentation
Jump to: navigation, search



TPageControl = class(TCustomTabControl)


class PASCALIMPLEMENTATION TPageControl : public TCustomTabControl


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


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