![]() ULTIMATE Page Control Suite™ |
|
Ultimate Page Control Suite™ Win32 | Delphi™ | C++Builder™ |
|
D.11.A. TADVANCE_PIDCollection |
|
TOwnedCollection TADVANCE_PIDCollection TADVANCE_AuxTools_Collection TADVANCE_PageGroup_Collection TADVANCE_ToolCollection__Prot TADVANCE_MasterTools_Collection TADVANCE_PagedTools_Collection TADVANCE_PIDCollections are a managed container of TADVANCE_PIDItems, which are distinguished by a unique, persistent PID identification integer that endures across application sessions. This automatically assigned, read-only integer is the equivalent of a formal name, in that it can be used to permanently identify each PIDItem. As conventional collections lack this capacity, TADVANCE_PIDCollection can be subclassed to deploy TADVANCE_PIDItems which are automatically and permanently identified. |
|
METHODS |
|
constructor Create_InitPID(AOwner: TPersistent; ItemClass: TCollectionItemClass); virtual;
Constructor. ItemClass must be a descendant of TADVANCE_PIDItem. |
|
DELPHI EXAMPLE C++ EXAMPLE |
|
function Move(CurIndex, NewIndex: Integer): Integer;
Moves a ToolButton from CurIndex to NewIndex. Re-draw is automated. |
|
DELPHI EXAMPLE C++ EXAMPLE |
|
function PID_GetIndex(APID: Integer): Integer; virtual;
Returns the index of an item if Item.PID = APID; -1 is returned if no match is found. |
|
DELPHI EXAMPLE — REFERRING TO PID TO PROCESS ITEM BY INDEX OF ITEM C++ EXAMPLE — REFERRING TO PID TO PROCESS ITEM BY INDEX OF ITEM |
|
function PID_GetItem(APID: Integer): TADVANCE_PIDItem; virtual;
Returns a pointer to an item if Item.PID = APID; or nil if no match is found. |
|
DELPHI EXAMPLE — REFERRING TO PID TO PROCESS ITEM C++ EXAMPLE — REFERRING TO PID TO PROCESS ITEM |
|
function PID_GetUniqueValue: Integer; virtual;
Do not call directly. Used internally in creating TADVANCE_PIDItem descendants. |
|
PROPERTIES |
|
property GreatestPIDValue : Integer read FGreatestPIDValue;
Read only. Returns the greatest used PID value of the TADVANCE_PIDCollection. |
|
D.11.B. TADVANCE_PIDItem |
|
TCollectionItem TADVANCE_PIDItem TADVANCE_AuxTools_Item TADVANCE_PageGroup_Item TADVANCE_ToolCollectionItem__Prot TADVANCE_MasterTools_Item TADVANCE_PagedTools_Item TADVANCE_PIDItem is distinguished by a Persistent ID (PID) which endures across application sessions and allows you to code permanent PID integer references to a TADVANCE_PIDItem. |
|
PROPERTIES |
|
property PID : Integer read FPID write SetPID stored True;
Read-only "Persistent ID". A TADVANCE_PIDItem can be identified by the PID integer across application sessions. |
|
|