Triggers the named or numbered button. This is typically assigned to a macro key. The number parameter can be a variable reference, but must evaluate to a numeric value. Instead of referring to a button by it's numeric position on the button bar, you can also refer to buttons by their ID name.
This command can also be used to define a button. This syntax is used by the ascii export and import scripting routines. If the number is zero, it refers to a button just past the last button, which is useful for appending a new button to the list. The syntax is:
#BUTTON id|number Off-caption On-command On-caption Off-command Value-expression Variable-name Bitmap-filename AutoSize Width Height AutoPos Top Left Off-color On-color Button-Kind Bitmap-margin Classname Options ToolTip ID PanelNum
For multi-state buttons On-caption, Off-command, and On-color can be string lists to represent the different states of the button.
Off-caption
On-command
On-caption
Off-command
Value-expression
Variable-name
Bitmap-filename
AutoSize
Width
Height
AutoPos
Top
Left
Off-color
On-color
Button-kind
Bitmap-margin
Classname
Options
Tooltip
ID
PanelNum
The panel number to display this button in. Value can be from 1 to 4. If omitted, the default value of 1 is used.
Add comment