Moves the active page to a position in the page list.
Source position: extctrls.pp line 115
public procedure TUNBPages.Move( |
CurIndex: Integer; |
NewIndex: Integer |
); override; |
Move is an overridden procedure in TUNBPages. It re-implements the method defined in the TStrings ancestor class. Move is used to relocate the active page in a NoteBook control to a new position in the page list.
Move uses the internal TNotebook member that is the owner of the class instance to retrieve the current page and its ordinal position.
CurIndex is set to the PageIndex for the active page in the Notebook component. NewIndex specifies the new ordinal position in the page list for the TPage instance.
The Move method in the internal page list (TObjectList) is called to move the TPage instance from using the required positions. The PageIndex for the TNotebook control is reset to re-activate the page moved in the operation.
Remark: | Move does NOT call the inherited method. |
|
Contains the page names and TPage instances defined for the notebook control. |
|
|
Ordinal position for the active page in the notebook control. |
|
|
Gets the ordinal position in the list of pages for the specified page object. |
|
|
TPage: One of the pages in a tabbed Notebook. |
|
TStrings.Move |
CT Web help |
CodeTyphon Studio |