![]() ULTIMATE Page Control Suite™ |
|
Ultimate Page Control Suite™ Win32 | Delphi™ | C++Builder™ |
|
D.01.A. TADVANCE_AuxTools_Collection |
|
TOwnedCollection TADVANCE_PIDCollection TADVANCE_AuxTools_Collection TADVANCE_PageGroup_Collection TADVANCE_ToolCollection__Prot TADVANCE_MasterTools_Collection TADVANCE_PagedTools_Collection
Example AuxTools™ (right, top). TADVANCE_AuxTools_Collections are drawn to the right of the FocusButton when the FocusControl™ is top or left aligned, and to the left of the FocusButton when the FocusControl™ is right-aligned. Auxiliary tool collections allow you to extend the functionality of UPC™ page modules simply by adding the tools you need. A managed TADVANCE_AuxTools_Collection belongs to each FocusControl™, and is administered at design time by the AuxTools™ property editor (immediately below). |
|
AuxTools™ PROPERTY EDITOR, PROPERTY EDITOR FUNCTIONS |
The AuxTools™ property ellipsis of the FocusControl invokes the AuxTools™ property editor. Fonts, glyph layout, margins, show hint, spacing, transparency, caption visibility and button dimensions are administered by global properties of the FocusControl™. |
AuxTools™ property editor. FUNCTIONS
|
|
METHODS |
|
function AddButtonItem: TADVANCE_AuxTools_Item;
Adds a button to the Auxiliary Focus Tools of the FocusControl™, returning a pointer to the Item containing the button. Re-draw is automated. |
|
DELPHI EXAMPLE C++ EXAMPLE |
|
procedure DeleteButtonItem(Index: Integer);
Deletes the AuxTools™ item at Index. Re-draw is automated. |
|
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 |
|
D.01.B. TADVANCE_AuxTools_Item |
|
TCollectionItem TADVANCE_PIDItem TADVANCE_AuxTools_Item TADVANCE_PageGroup_Item TADVANCE_ToolCollectionItem__Prot TADVANCE_MasterTools_Item TADVANCE_PagedTools_Item TADVANCE_AuxTools_Item wraps the individual AuxTool™ button. To operate on the item at design time, click the AuxTools™ property ellipsis of the FocusControl, select the item, and click CLOSE, Focus Selected in Object Inspector. |
|
EVENTS |
TADVANCE_AuxTools_Item events. |
|
property OnClick: TNotifyEvent read FOnClick write SetOnClick;
Button.OnClick.
property OnDblClick: TNotifyEvent read FOnDblClick write SetOnDblClick;
Button.OnDblClick.
property OnMouseDown: TMouseEvent read FOnMouseDown write SetOnMouseDown;
Button.OnMouseDown.
property OnMouseMove: TMouseMoveEvent read FOnMouseMove write SetOnMouseMove;
Button.OnMouseMove.
property OnMouseUp: TMouseEvent read FOnMouseUp write SetOnMouseUp;
Button.OnMouseUp. |
|
PROPERTIES |
TADVANCE_AuxTools_Item properties. |
|
property Caption: String read FCaption write SetCaption;
Button.Caption.
property Down: Boolean read FDown write SetDown default False;
Button.Down.
property Enabled: Boolean read FEnabled write SetEnabled default True;
Button.Enabled.
property Glyph: TBitmap read GetGlyph write SetGlyph;
Button.Glyph.
property GroupIndex: Integer read FGroupIndex write SetGroupIndex default 0;
Button.GroupIndex.
property Hint: String read FHint write SetHint;
Button.Hint.
property IsPrecededBySpacer: Boolean read FIsPrecededBySpacer write SetIsPrecededBySpacer;
IsPrecededBySpacer declares the beginning of a group of buttons preceded by a spacer. The width of the spacer equals ToolButton_ProportionalSpacerWidthPercent times AuxTools_Width or AuxTools_Width_Captions_Visible (if AuxTools_Captions_Visible). IsPrecededBySpacer of the first button of the collection is ignored.
property NumGlyphs: TNumGlyphs read FNumGlyphs write SetNumGlyphs default 2;
Button.NumGlyphs.
property PID : Integer read FPID stored True;
AuxTools_Items are identified by a PID (Persistent ID) which endures across application sessions. PIDs allow you to code permanent references to TADVANCE_PIDItem.
property PopupMenu: TPopupMenu read FPopupMenu write SetPopupMenu;
Button.PopupMenu. |
|
• PRECEDING
|
|
|