Sign in Join
FPDoc Onlineexperiment

TCustomTabControl.RemovePage procedure

Member of TCustomTabControlprotectedIn unit ComCtrls

Removes the page object at the specified position in the page list and updates the visible tabs on the control.

Declaration

pascal
procedure RemovePage(Index: Integer); virtual

Arguments

Index

Ordinal position for the page object removed from the page list.

Description

RemovePage is a method used to remove the page object at the position specified in Index from the page list in the tabbed control.

RemovePage gets the TCustomPage instance at the specified position in Page and performs actions needed to remove the page object. The TabVisible property in the page is set to False, and the page is removed from both the local page list and the page list in the widget. PageIndex is decremented when it contains the page Index removed in the method.

No actions are performed in the method if Index is not in the range 0..PageCount-1.

See also

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