Sign in Join
FPDoc Onlineexperiment

TNBPages.Insert procedure

Member of TNBPagespublicIn unit ComCtrls

Inserts a new page with the given name at the specified position in PageList.

Declaration

pascal
procedure Insert(Index: Integer; const S: string); override

Arguments

Index

Ordinal position where the new page is stored.

S

Name (Caption) used for the new page instance.

Description

Insert calls the GetPageClass method in NoteBook to get the class reference used to create the new page. The owner of the page instance is the NoteBook control (or its owner when assigned). The value in S is assigned as the Caption in the TCustomPage instance. The InsertPage method in NoteBook is called to store the TCustomPage instance at the position in Index.

See also

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