[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ExtCtrls' (#lcl)

# TCustomPage

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TCustomPage: The base type for Page

## Declaration

Source position: extctrls.pp line 52

`type TCustomPage = class(TWinControl)`
`protected`
`procedure WSRegisterClass; override;` |  | WSRegisterClass - Register this Class for the current Widget Set
`procedure WMPaint(); message;` |  | WMPaint - LCL Message for Paint
`procedure SetParent(); override;` |  | Find who the parents are and store the information
`property Flags: TPageFlags; [rw]` |  |
`procedure CMHitTest(); message;` |  | Control Message for Hit Test
`function GetPageIndex;` |  | GetPageIndex - returns the index of the current page
`procedure SetPageIndex();` |  | SetPageIndex - specifies an index for the current page
`function DialogChar(); override;` |  | DialogChar - a LCL Key Message; returns True if a Dialog character has an associated message
`procedure DoHide; virtual;` |  | DoHide - perform the code for the OnHide event handler
`procedure DoShow; virtual;` |  | DoShow - perform the code for the OnShow event handler
`procedure DestroyHandle; override;` |  | DestroyHandle - removes the handle for this window
`procedure RealSetText(); override;`
`public`
`constructor Create(); override;` |  | Create - constructor for TCustomPage: calls inherited Create then initialises style, visibility, alignment and caption
`procedure AdjustClientRect(); override;` |  | AdjustClientRect - method for adjusting the size and position of the client control
`function CanTab; override;` |  | CanTab - if True, the Tab key can be used to navigate to this control
`function AutoSizeDelayed; override;` |  | Auto-sizing has been delayed until some other process is complete
`function IsControlVisible; override;` |  | Is the control visible on the current desktop?
`function HandleObjectShouldBeVisible; override;`
`function VisibleIndex;` |  | VisibleIndex - returns the index number of a visible page
`property PageIndex: Integer; [rw]` |  | PageIndex - integer index value for this page in the notebook
`property TabVisible: Boolean; [rw]` |  | TabVisible - is the Tab for this page visible?
`property ImageIndex: Integer; [rw]` |  | ImageIndex - integer index value for the image associated with this page
`property Left; [s]` |  | Left - the coordinate of the left edge of the control
`property Top; [s]` |  | Top - the coordinates of the top edge of the control
`property Width; [s]` |  | Width - the horizontal dimension of the control
`property Height; [s]` |  | Height - the vertical dimension of the control
`property TabOrder; [s]` |  | The place this control occupies in the list of tabs
`property Visible; [s]` |  | Visible - can the control be seen?
`property OnHide: TNotifyEvent; [rw]` |  | OnHide - event handler for hiding this page in a notebook
`property OnShow: TNotifyEvent; [rw]` |  | OnShow - event handler for showing (making visible) this page of a notebook
`end;`

## Inheritance

`TCustomPage` |  | TCustomPage: The base type for Page
`TWinControl` |  | TWinControl - the base class for all windowed controls
`TControl` |  | TControl - the main ancestor class for visual controls.
`TLCLComponent`
?
`TObject`

## Description

TCustomPage: The base type for the tabbed pages found in notebooks

## See also

Multi-PageControls |  | Multi-PageControls - controls that offer a selection of alternative pages for display

The latest version of this document can be found at lazarus-ccr.sourceforge.net.