Difference between revisions of "Menu Get"

From Wiki
Jump to: navigation, search
(Applying templates (header, body, footer))
Line 1: Line 1:
__NOTOC__
+
{{command header|Menu}}
== Menu Get ==
+
'''Menu'''
+
=== Synopsis ===
+
[[menu Get]] {name}
+
  
=== Description ===
+
{{body|menu Font Get {name} |TThe [[menu Get]] command returns value associated with a control in the EasyUO menu window in the [[var_menuRes|#menuRes]] system variable. If the window is closed "Closed" is returned.
The [[menu Get]] command returns value associated with a control in the EasyUO menu window in the [[var_menuRes|#menuRes]] system variable. If the window is closed "Closed" is returned.
+
  
 
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.
  
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.}}
 +
 
  
 
==== Example ====
 
==== Example ====
Line 31: Line 27:
 
</pre>
 
</pre>
  
==== See Also ====
+
 
{|
+
{{footer}}
| [[menu_Activate|menu Activate]], [[menu_Button|menu Button]], [[menu_Check|menu Check]], [[menu_Clear|menu Clear]], [[menu_Combo|menu Combo]], [[menu_Delete|menu Delete]], [[menu_Edit|menu Edit]], [[menu_Font_Align|menu Font Align]], [[menu_Font_BGColor|menu Font BGColor]], [[menu_Font_Color|menu Font Color]], [[menu_Font_Name|menu Font Name]], [[menu_Font_Size|menu Font Size]], [[menu_Font_Style|menu Font Style]], [[menu_Font_Transparent|menu Font Transparent]], [[menu_GetNum|menu GetNum]], [[menu_Hide|menu Hide]], [[menu_HideEUO|menu HideEUO]], [[menu Image Create| menu Image Create]], [[menu Image Ellipse|menu Image Ellipse]], [[menu Image File|menu Image File]], [[menu Image FloodFill|menu Image FloodFill]], [[menu Image Line|menu Image Line]], [[menu Image Pix|menu Image Pix]], [[menu Image PixLine|menu Image PixLine]], [[menu Image Pos|menu Image Pos]], [[menu Image Rectangle|menu Image Rectangle]], [[menu_List|menu List]], [[menu_Set|menu Set]], [[menu_Shape|menu Shape]], [[menu_Show|menu Show]], [[menu_Text|menu Text]], [[menu_Window_Color|menu Window Color]], [[menu_Window_Size|menu Window Size]], [[menu_Window_Title|menu Window Title]], [[var_menuRes|&#0035;menuRes]]
+
|}
+
----
+
{|
+
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px |
+
[[Documentation#Menu |Menu ]]
+
|}
+

Revision as of 06:08, 23 September 2005


Synopsis

menu Font Get {name}

Description

TThe menu Get command returns value associated with a control in the EasyUO menu window in the #menuRes system variable. If the window is closed "Closed" is returned.

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.


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