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

TCustomPage

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

TCustomPage: The base type for Page

Declaration

Source position: comctrls.pp line 236

type TCustomPage = class(TWinControl) end;

protected

  class procedure WSRegisterClass; override;

  procedure WMPaint(); message;

  

Manages paint requests, handles double buffering.

  procedure SetParent(); override;

  property Flags: TPageFlags; [rw]

  

  procedure CMHitTest(); message;

  

Message handler for hit test.

  procedure CMVisibleChanged(); message;

  function GetPageIndex; virtual;

  

GetPageIndex - returns the index of the current page

  procedure SetPageIndex(); virtual;

  

SetPageIndex - specifies an index for the current page

  function GetTabVisible; virtual;

  

  function DialogChar(); override;

  

Do something useful with accelerators etc.

  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;

  

Destroys this and all child widgets.

  procedure RealSetText(); override;

public

  constructor Create(); override;

  

Create - constructor for TCustomPage: calls inherited Create then initialises style, visibility, alignment and caption

  function CanTab; override;

  

If True, the Tab key can be used to navigate to this control.

  function IsControlVisible; override;

  

True if the control is Visible, or is in design mode.

  function HandleObjectShouldBeVisible; override;

  function VisibleIndex; virtual;

  

VisibleIndex - returns the index number of a visible page

  procedure CheckNewParent(); override;

  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: TImageIndex; [rw]

  

ImageIndex - integer index value for the image associated with this page

  property Left: Integer; [s]

  

The client coordinate of the left edge of the control.

  property Top: Integer; [s]

  

The client coordinate of the top edge of the control.

  property Width: Integer; [s]

  

The horizontal extent of the control.

  property Height: Integer; [s]

  

The vertical size of the control.

  property TabOrder: TTabOrder; [s]

  

Determines the sequence of controls, reachable when the user presses the Tab key.

  property Visible: Boolean; [s]

  

Allows to show or hide the control, and all of its children.

  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

Inheritance

TCustomPage

  

TCustomPage: The base type for Page

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

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.