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

TCustomTabControl.ActivePageComponent

The active TCustomPage instance for the tabbed control.

Declaration

Source position: comctrls.pp line 455

protected property TCustomTabControl.ActivePageComponent : TCustomPage
  read GetActivePageComponent
  write SetActivePageComponent;

Description

ActivePageComponent is a TCustomPage property which indicates the active page component for the tabbed control.

PageIndex is used to access the page instance in Page with the property value. The property value is Nil when PageIndex contains a value that is not in the range 0..PageCount-1.

Setting a new value for the property causes the IndexOf method to be called to locate the value in the list of pages. PageIndex is updated to reflect the position for the specified page, and may contain -1 if pages are not used in the tabbed control.

Use ActivePage to get or set the active page in the control using its Caption.

See also

TCustomTabControl.PageIndex

  

PageIndex - Index number of the current page.

TCustomTabControl.Page

  

The current Page of the Notebook.

TCustomTabControl.IndexOf

  

IndexOf - returns the index value of a specified page.

TCustomTabControl.ActivePage

  

Caption for the active page in the tabbed control.

TCustomPage

  

The base class for TTabSheet.

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