Syntax
MoveButton SourceToolbar$, SourcePosition, TargetToolbar$, TargetPosition [, Copy] [, Context]
Remarks
Moves or copies a toolbar button, list box, or space to another toolbar or to another position on the same toolbar.
Argument | Explanation |
SourceToolbar$ | The name of the toolbar containing the item you want to move or copy, as listed in the Toolbars dialog box (View menu). |
SourcePosition | The position of the item you want to move or copy, where 1 is the first position, 2 is the second, and so on. Note that a list box or space counts as one position. |
TargetToolbar$ | The name of the toolbar to which you want to move or copy the item. |
TargetPosition | The position to which you want to move or copy the item. |
Copy | If 1, copies instead of moves the toolbar item. |
Context | Determines where the change to the toolbar or toolbars is stored: 0 (zero) or omitted Normal template 1 Active template |
Example
This example copies the Show/Hide ¶ button from the Standard toolbar to the end of the Macro toolbar (assuming these toolbars have not been customized already):
MoveButton "Standard", 26, "Macro", 18, 1, 0
See Also
AddButton, ChooseButtonImage, CopyButtonImage, DeleteButton, EditButtonImage, PasteButtonImage, ResetButtonImage