Sign in Join
FPDoc Onlineexperiment

TPageControl.Pages property

Member of TPageControlpublicIn unit ComCtrls

Provides indexed access to the pages (tab sheets) on the page control.

Declaration

pascal
property Pages[Index: Integer]: TTabSheet read GetTabSheet;

Description

Pages is a read-only indexed TTabSheet property used to access pages (tab sheets) defined on the page control by their ordinal positions. Read access to the property value ensures that the page object is cast to the TTabSheet class type used in the control.

At design-time, use the ActivePage property to make one of the Pages become active on the control. Use the published TabIndex property to select a page by its ordinal position.

At run-time, use methods like FindNextPage or SelectNextPage to locate or select a TTabSheet for use as the ActivePage. You can also use ActivePageIndex to specify the active page by its ordinal position at run-time.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.