HOME, PRODUCTS, ARTICLESCONTACT

BUY UPC™UPC™ FEEDBACKUPC™ SUPPORT

D.08.A. TADVANCE_PagedTools_Collection

TOwnedCollection

TADVANCE_PIDCollection

TADVANCE_AuxTools_Collection

TADVANCE_PageGroup_Collection

TADVANCE_ToolCollection__Prot

TADVANCE_MasterTools_Collection

TADVANCE_PagedTools_Collection

PagedTools™. Example PagedTools™ are marked by square blue glyphs.

The page class, TADVANCE_Page_PagedTools, parents managed TADVANCE_PagedTools_Collections of TADVANCE_PagedTools_Items.

PagedTools™ PROPERTY EDITOR, PROPERTY EDITOR FUNCTIONS

The ellipsis button of TADVANCE_Page_PagedTools.Toolbar.PagedTools.

The PagedTools™ property elipsis of TADVANCE_Page_PagedTools invokes the PagedTools™ property editor. Global Toolbar properties are applied to the whole collection.

PagedTools™ property editor.

The PagedTools™ property editor.

FUNCTIONS

  • ADD appends a new PagedTools_Item to the PagedTools collection.
  • Delete destroys the selected PagedTools_Item, subject to confirmation.
  • Dec(Index) decrements the index property of the PagedTools_Item.
  • Inc(Index) increments the index property of the selected PagedTools_Item.
  • Edit assigns editable fields of the selected item to the editing controls. To post work to the item, you must click Post.
  • Post assigns edited values to the item.
  • CLOSE, Focus Selected in Object Inspector opens the selected item in the Object Inspector.

METHODS

function AddButtonItem: TADVANCE_PagedTools_Item;
TADVANCE_PagedTools_Item* __fastcall AddButtonItem(void);

Adds a ToolButton item to the PagedTools collection, returning a pointer to the Item containing the button. Re-draw is automated.

DELPHI EXAMPLES

Copy code to clipboard (JavaScript/IE).

C++ EXAMPLES

Copy code to clipboard (JavaScript/IE).

procedure DeleteButtonItem(Index: Integer);
void __fastcall DeleteButtonItem(int Index);

Deletes the PagedTools item at Index. Re-draw is automated.

DELPHI EXAMPLE

Copy code to clipboard (JavaScript/IE).

C++ EXAMPLE

Copy code to clipboard (JavaScript/IE).

function Move(CurIndex, NewIndex: Integer): Integer;
int __fastcall Move(int CurIndex, int NewIndex);

Moves a ToolButton from CurIndex to NewIndex. Re-draw is automated.

DELPHI EXAMPLE

Copy code to clipboard (JavaScript/IE).

C++ EXAMPLE

Copy code to clipboard (JavaScript/IE).

function PID_GetIndex(APID: Integer): Integer; virtual;
virtual int __fastcall PID_GetIndex(int APID);

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

Copy code to clipboard (JavaScript/IE).

C++ EXAMPLE — REFERRING TO PID TO PROCESS ITEM BY INDEX OF ITEM

Copy code to clipboard (JavaScript/IE).

function PID_GetItem(APID: Integer): TADVANCE_PIDItem; virtual;
virtual TADVANCE_PIDItem* __fastcall PID_GetItem(int APID);

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

Copy code to clipboard (JavaScript/IE).

C++ EXAMPLE — REFERRING TO PID TO PROCESS ITEM

Copy code to clipboard (JavaScript/IE).

D.08.B. TADVANCE_PagedTools_Item

TCollectionItem

TADVANCE_PIDItem

TADVANCE_AuxTools_Item

TADVANCE_PageGroup_Item

TADVANCE_ToolCollectionItem__Prot

TADVANCE_MasterTools_Item

TADVANCE_PagedTools_Item

A TADVANCE_PagedTools_Item wraps each PagedTool™ of the Paged Toolbar™.

EVENTS

TADVANCE_PagedTools_Item events.

property OnClick: TNotifyEvent read FOnClick write SetOnClick;
__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=SetOnClick};

Button OnClick.

property OnDblClick: TNotifyEvent read FOnDblClick write SetOnDblClick;
__property Classes::TNotifyEvent OnDblClick = {read=FOnDblClick, write=SetOnDblClick};

Button OnDblClick.

property OnMouseDown: TMouseEvent read FOnMouseDown write SetOnMouseDown;
__property Controls::TMouseEvent OnMouseDown = {read=FOnMouseDown, write=SetOnMouseDown};

Button OnMouseDown.

property OnMouseMove: TMouseMoveEvent read FOnMouseMove write SetOnMouseMove;
__property Controls::TMouseMoveEvent OnMouseMove = {read=FOnMouseMove, write=SetOnMouseMove};

Button OnMouseMove.

property OnMouseUp: TMouseEvent read FOnMouseUp write SetOnMouseUp;
__property Controls::TMouseEvent OnMouseUp = {read=FOnMouseUp, write=SetOnMouseUp};

Button OnMouseUp.

PROPERTIES

TADVANCE_PagedTools_Item properties.

property Caption: String read FCaption write SetCaption;
__property AnsiString Caption = {read=FCaption, write=SetCaption};

Button Caption.

property Down: Boolean read FDown write SetDown default False;
__property bool Down = {read=FDown, write=SetDown, default=0};

Button Down.

property Enabled: Boolean read FEnabled write SetEnabled default True;
__property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};

Button Enabled.

property Glyph: TBitmap read GetGlyph write SetGlyph;
__property Graphics::TBitmap* Glyph = {read=GetGlyph, write=SetGlyph};

Button Glyph.

property GroupIndex: Integer read FGroupIndex write SetGroupIndex default 0;
__property int GroupIndex = {read=FGroupIndex, write=SetGroupIndex, default=0};

Button GroupIndex.

property Hint: String read FHint write SetHint;
__property AnsiString Hint = {read=FHint, write=SetHint};

Button Hint.

property IsPrecededBySpacer : Boolean read FIsPrecededBySpacer write SetIsPrecededBySpacer;
__property bool IsPrecededBySpacer = {read=FIsPrecededBySpacer, write=SetIsPrecededBySpacer, nodefault};

IsPrecededBySpacer declares the beginning of a group of buttons preceded by a spacer. The width of the spacer equals PMInterface.ToolButton_ProportionalSpacerWidthPercent times Page.Toolbar.ToolWidth (if Page.Toolbar.Captions_Visible is false) or Page.Toolbar.ToolWidth_Captions_Visible (if Page.Toolbar.Captions_Visible is true). IsPrecededBySpacer of the first button of the collection is ignored.

property NumGlyphs: TNumGlyphs read FNumGlyphs write SetNumGlyphs default 2;
__property Buttons::TNumGlyphs NumGlyphs = {read=FNumGlyphs, write=SetNumGlyphs, default=2};

Button NumGlyphs.

property PopupMenu: TPopupMenu read FPopupMenu write SetPopupMenu;
__property Menus::TPopupMenu* PopupMenu = {read=FPopupMenu, write=SetPopupMenu};

Button PopupMenu.

property RefDescriptor : String read FRefDescriptor write FRefDescriptor;
__property AnsiString RefDescriptor = {read=FRefDescriptor, write=FRefDescriptor};

Intended for manual identification in the IDE. Can also be used for programmatic identification or any other desirable purpose, as RefDescriptor is not processed by UPC™ operations.

property User_GroupID: Integer read FUser_GroupID write FUser_GroupID;
__property int User_GroupID = {read=FUser_GroupID, write=FUser_GroupID, nodefault};

Provided for developer purposes such as numerically coded security. User_GroupID is not processed by UPC™ operations.

property Visible; (Boolean)
__property Visible ; (bool)

Button Visible.

© Copyright 1995-2007, by ADVANCE Information Systems, Inc. ALL RIGHTS RESERVED.Copyright 1995-2007, by ADVANCE Information Systems, Inc. ALL RIGHTS RESERVED.

Firefox™.Best viewed in Mozilla Firefox™.