Register to post in forums, or Log in to your existing account
 

 Related 
Contents
See also:
  Introduction to Buttons
  Editing Buttons
Feature Reference
  Aliases
  Macros
  Variables
  Functions
  Classes
  Triggers
  Buttons
  Gauges
  Paths
  Menus
  Events
  Modules
  Windows
  Packages
  Shared Package Library
  Package Editor
  Docked Windows
  Customizeable Toolbars
  Sessions
  Expressions
  Automapper Module
  Database Module
  Syntax Checking
  Tab Completion
  Status items
  Preferences
  Simutronics Support
  Pueblo Emulation
  Keyboard shortcuts
  MXP
  Threads
  ATCP
  Script Debugger
  Timestamps
  Lua Scripting
Related Links:
  #T+
  Create/Modify Settings
  Introduction to Buttons
  Terminology
  Feature Summary
  Buttons
Buttons [[cmud_buttons]] 
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.
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net