Difference between revisions of "MenuButton"
From Wiki
m (→Description) |
|||
Line 1: | Line 1: | ||
− | + | {{header|result|rw|Holds the name of the last menu button pressed. | |
− | + | ||
− | + | ||
− | + | ||
− | {{rw | + | |
− | + | ||
− | Holds the name of the last menu button pressed | + | |
− | + | ||
− | + | ||
+ | if you close the menu window, the #menuButton value is set to "Close". hoewver, the minimize and maximize buttons do not set the #menuButton variable.}} | ||
{{Note|You should set #menuButton to a meaningless value when you have read which button was clicked in order to distinguish between two seperate clicks}} | {{Note|You should set #menuButton to a meaningless value when you have read which button was clicked in order to distinguish between two seperate clicks}} | ||
− | |||
==== Example ==== | ==== Example ==== | ||
Line 33: | Line 25: | ||
</pre> | </pre> | ||
− | + | {{footer}} | |
− | { | + | |
− | + | ||
− | + | ||
− | + | ||
− | { | + | |
− | + | ||
− | + |
Revision as of 11:21, 26 August 2005
⇔ | Holds the name of the last menu button pressed.
if you close the menu window, the #menuButton value is set to "Close". hoewver, the minimize and maximize buttons do not set the #menuButton variable. |
Note: | You should set #menuButton to a meaningless value when you have read which button was clicked in order to distinguish between two seperate clicks |
Example
menu Window Size 200 200 menu Window Title Test menu Button button_1 10 20 50 25 Click me! menu Button button_2 10 50 50 25 Click me! menu Button button_3 10 80 50 25 Click me! menu Show set #menuButton Nothing lookButton: if #menuButton <> Nothing { display ok #menuButton , #spc , was pressed set #menuButton Nothing } goto lookButton
See also
Main Page | Documentation |