cmbutton button
where button is one of left, middle, or right.
The cmbutton 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 cmbutton 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.
cmbutton is implemented as a built-in color window command in magic. It can only be invoked from a window created with the specialopen color command.
Return to command index |
Last updated: November, 2004