Sign in Join
FPDoc Onlineexperiment

TCustomTabControl.ActivePageComponent property

Member of TCustomTabControlprotectedIn unit ComCtrls

The active TCustomPage instance for the tabbed control.

Declaration

pascal
property 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

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