MoveButton Method (AToolBar)

Moves a button object from one index to another.

Syntax

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.

Comments

This method applies only to objects which can be visible at run time.

Example

The following example will move the "Save" button to a new position before the "Open" button:

tbrl.MoveButton("Save", "Open")

Applies to

AToolBar

See Also

Clear, InsertButton, RemoveButton