The SetButtonStatus transaction sets the status of the specified button.
Type XTYP_EXECUTE
Syntax [SetButtonStatus(buttonID, status)]
|
Parameter |
Data type |
Values |
Meaning |
|
buttonID |
WORD |
identifier of the command associated with the button | |
|
status |
WORD |
1 |
enabled. See Remarks. |
|
|
|
2 |
grayed. See Remarks. |
|
|
|
4 |
removed |
|
|
|
(can be ORed) |
|
Remarks
When you enable or gray a button, the command is also enabled or grayed in the menu.
To remove a button while leaving its function enabled, pass a value of 5 (both enabled and removed).
Only buttons related to commands available in your edition of Imagenation can be enabled.
Release information
Added in Release 3.80.
See also