#

## pushbutton

Execute the default function associated with a mouse button event.

### Usage:

> pushbutton button

> > where button is one of left, middle, or right.

### Summary:

> The pushbutton command invokes the function "traditionally" associated with the indicated mouse button. However, in Magic-7.3, button actions are treated as macros, and so the button macros are defined, by default, to call the pushbutton command for the indicated button. The button actions no longer recognize button-up events. The action taken depends on where in the color window the button was pressed. Actions are defined for pressing the button in one of the six color bars or the "plus" and "minus" buttons on each side of each color bar, and changes the color components of the current edit color accordingly.

### Implementation Notes:

> pushbutton is implemented as a built-in color window command in magic. It overrides the default window client pushbutton command.

Return to command index

Last updated: November, 2004