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

TPageControl.Pages

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

Declaration

Source position: comctrls.pp line 606

public property TPageControl.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

TPageControl.ActivePage

  

The currently selected and active page (TTabSheet) on the page control.

TPageControl.ActivePageIndex

  

Ordinal position for the active page (tab sheet) on the page control.

TPageControl.FindNextPage

  

Gets the next tab sheet in the specified direction.

TPageControl.SelectNextPage

  

Locates and activates the next page in the specified direction.

TPageControl.TabIndex

  

Contains the ordinal position for the active Tab in the control.

TTabSheet

  

An individual page used in TPageControl.

TCustomTabControl.Page

  

Provides indexed access to the page objects used on the tabbed control.

TCustomTabControl.Pages

  

The list of captions for the page objects on the control.

TCustomTabControl.PageIndex

  

Ordinal position for the selected page on the tabbed control.


Version 3.2 Generated 2024-02-25 Home