CommandBarButtons.Move

Syntax:

Move(<Button>, <Offset>)

Parameters:

<Button> (required)

Type: Number; CommandBarButton.
Index of button that you want to shift or the button itself.

<Offset> (required)

Type: Number.
A number of buttons, by which the button should be shifted. Positive value indicates that the button will be moved towards the end of the command bar (index increment), while negative value indicated that the button will be moved towards the beginning of the command bar.

Description:

Moves the button to a specified number of positions.

Availability:

Thick client.

Example:

// Move the command bar button to the right
CP = Controls.CommandBar;
CP.Buttons.Move(0,1);


    

1C:Enterprise Developer's Community