Moves a button object from one index to another.
Object.MoveButton ( vKey, vKeyMoveTo )
The MoveButton method syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AToolBar |
AToolBar control |
|
vKey |
Variant |
An integer specifying the index of the currently selected item in the object. |
|
vKeyMoveTo |
Variant |
An integer specifying the index of the currently selected item in the object. |
This method applies only to objects which can be visible at run time.
The following example will move the "Save" button to a new position before the "Open" button:
tbrl.MoveButton("Save", "Open")