Sign in Join
FPDoc Onlineexperiment

TPageControl.Clear procedure

Member of TPageControlpublicIn unit ComCtrls

Clears the list of tab names in the control, and frees the associated tab sheets or pages.

Declaration

pascal
procedure Clear

Description

By calling the Clear method of the protected Tabs property in the TCustomTabControl ancestor, this method removes all tab sheets from the PageControl. The TPageControl.PageCount is 0 afterwards.

Note, however, that the controls on the tab sheets are only destroyed when their Owner is one of the tab sheets. Otherwise they still exist on the form, but their Parent has been set to nil.

See also

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