Difference between revisions of "MenuRes"
From Wiki
(→Example) |
|||
Line 1: | Line 1: | ||
− | + | {{header|result|ro|Holds the value from the last [[menu Get]] or [[Menu GetNum]] statement executed.}} | |
− | + | ||
− | + | ||
− | + | ||
− | {{ro | + | |
− | + | ||
− | Holds the value from the last [[menu Get]] or [[Menu GetNum]] statement executed. | + | |
==== Example ==== | ==== Example ==== | ||
Line 50: | Line 44: | ||
</pre> | </pre> | ||
− | + | {{footer}} | |
− | { | + | |
− | + | ||
− | + | ||
− | + | ||
− | { | + | |
− | + | ||
− | + |
Revision as of 12:20, 26 August 2005
⇒ | Holds the value from the last menu Get or Menu GetNum statement executed. |
Example
menu Clear menu Window Title Example menu Window Color BtnFace menu Window Size 117 95 menu Font Transparent #true menu Font Align Right menu Font Name Default menu Font Size 8 menu Font Style menu Font Color Black menu Font Align Left menu Check CheckBox1 8 8 97 17 #false Check Box 1 ;<-- CheckBox not ticked = #False menu Check CheckBox2 8 32 97 17 #true Check Box 2 ;<-- CheckBox ticked = #True menu Font Name MS Sans Serif menu Font Color WindowText menu Button OKButton 40 64 35 25 OK menu Show 421 270 MenuLoop: Wait 1 If #MenuButton <> OKButton ;<-- Check to see if OK button has been pressed. Goto MenuLoop Menu Get CheckBox1 ;<-- Gets the value from CheckBox1 menu item If #MenuRes = #True ;<-- If #MenuRes is true the checkbox has been ticked Set %CheckBox1 #True Else Set %CheckBoc1 #False Menu Get CheckBox2 If #MenuRes = #True Set %CheckBox2 #True Else Set %CheckBox2 #False Halt
See also
Main Page | Documentation |