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

TPageControl.ActivePageIndex

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

Declaration

Source position: comctrls.pp line 607

public property TPageControl.ActivePageIndex : Integer
  read GetActivePageIndex
  write SetActivePageIndex;

Description

ActivePageIndex is an Integer property with the ordinal position in Pages where the ActivePage is stored. The value for the property is read from and written the PageIndex property in the TCustomTabControl ancestor.

ActivePageIndex contains -1 when PageCount is 0 (no tab sheets have been created), or ActivePage has not been assigned.

See also

TPageControl.Pages

  

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

TPageControl.ActivePage

  

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

TCustomTabControl.PageCount

  

Returns the number of page objects stored in the internal page list for the tabbed control.

TCustomTabControl.PageIndex

  

Ordinal position for the selected page on the tabbed control.


Version 4.0 Generated 2025-05-03 Home