Difference between revisions of "Menu Get"
From Wiki
Line 1: | Line 1: | ||
{{command header|Menu}} | {{command header|Menu}} | ||
− | {{body|menu Get {name} |The [[menu Get]] command returns value associated with a control in the EasyUO menu window in the [[var_menuRes|#menuRes]] system variable | + | {{body|menu Get {name} |The [[menu Get]] command returns value associated with a control in the EasyUO menu window in the [[var_menuRes|#menuRes]] system variable. |
Usage with a combo box returns the index of the item selected within the combo box, starting with 0, for nothing selected. | Usage with a combo box returns the index of the item selected within the combo box, starting with 0, for nothing selected. | ||
Line 7: | Line 7: | ||
Usage with a check box returns #true if the checkbox is checked, #false if it is not.}} | Usage with a check box returns #true if the checkbox is checked, #false if it is not.}} | ||
+ | {{note|Clicking menu button's (including the window's close button) set's [[var_menuButton|#menuButton]] without the need to use menu Get.}} | ||
==== Example ==== | ==== Example ==== |
Revision as of 21:03, 27 November 2005
Synopsis
menu Get {name}
Description
The menu Get command returns value associated with a control in the EasyUO menu window in the #menuRes system variable.
Usage with a combo box returns the index of the item selected within the combo box, starting with 0, for nothing selected.
Usage with a check box returns #true if the checkbox is checked, #false if it is not.
Note: | Clicking menu button's (including the window's close button) set's #menuButton without the need to use menu Get. |
Example
; This will save the text in the edit field named edit_1 into the ; variable #menuRes. This will only work for edit field items. ; #menuRes will return as a string. menu Get edit_1
Example w/ ComboBox
menu show menu combo create test 0 0 100 menu combo add test One menu combo add test Two menu combo add test Three pause menu get test display ok #menures
See also
Main Page | Documentation |