Vcl.ComCtrls.TPageControl
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
- TTabControl
- TTabSheet
- Grouping Controls
- Page Controls
- Tab Controls
- Win32 Controls
- Specifying Accelerator Keys