|
|
|
A Button is a graphical "button" that will execute a script when you click the mouse on it. This is very similar to a macro except that it is done visually with the mouse.
Buttons can be grouped into different Buttons Bars. Each CMUD window has four button bars that can be positioned on the different edges of the window. The size and position of the button on its Button Bar can be precisely controlled, or left for CMUD to automatically decide.
Buttons can be simple push buttons (click to execute the script), or can be Toggle buttons (on or off, and clicking the button in each state can execute a different script). Buttons can also be assigned a drop-down menu of options to be selected using a Multistate button.
The #BUTTON command can be used to define simple buttons on the screen, or to trigger a particular button. For example:
#BUTTON 1 {Test Button} {look}
will create a button in the first position of the main button bar that has a caption of "Test Button" and which executes the script "look" when you click in the button. While the #BUTTON command has many different arguments for specifying button properties on the command line, it is recommended that you use the Edit Button screen in the Package Editor to change the properties of a button. The Edit Button screen makes it much easier to change the color, size, position and other visual properties interactively using a sample button shown on the editor page. |
|