[Overview][Types][Classes][Procedures and functions][Index] |
Adds the specified page object to the list of pages.
Source position: extctrls.pp line 110
public function TUNBPages.AddObject( |
const S: string; |
AObject: TObject |
):Integer; override; |
S |
|
Identifier used as the name and caption for the page object. |
AObject |
|
Object with the TPage instance stored in the method. |
Ordinal position in the page list where the specified page object was stored.
AddObject is an overridden method in TUNBPages used to add the specified object to the page list maintained in the class instance. It re-implements the virtual method introduced in TStrings, and does not call the inherited method.
S contains the string used to identify the page instance in AObject. The value is used as the Caption for the page object, and as the basis for the Name used in the TPage class instance. The Name for the class instance must be a unique identifier (when specified) in the Components for the TNoteBook control owner. A numeric suffix is appended to the Name value if S is not a unique identifier name on the owner of the TNotebook control. If S is not specified (contains ''), the Name for the class instance is not assigned.
AObject is the page instance added to the internal list. AddObject ensures that AObject is cast to TPage and its properties are initialized:
The return value is the ordinal position in the internal page list where AObject was stored. If the notebook does not already have an active page, the return value is assigned as the active PageIndex in the notebook control.
AddObject is called from the Add method using the TPage instance created in that method.
|
Creates a new page instance with the specified name. |
|
|
Ordinal position for the page in its Notebook. |
|
|
Allows the control, and all of its children, to be displayed or hidden. |
|
|
Ordinal position for the active page in the notebook control. |
|
|
Contains the page names and TPage instances defined for the notebook control. |
|
|
The text displayed for the control. |
|
|
The control within which the control is shown. |
|
|
Specifies the placement of the control on its Parent control. |
|
Version 4.0 | Generated 2025-05-03 | Home |