Difference between revisions of "Menu Get"

From Wiki
Jump to: navigation, search
Line 9: Line 9:
  
 
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.
  
 
==== Example ====
 
==== Example ====
Line 16: Line 18:
 
; #menuRes will return as a string.
 
; #menuRes will return as a string.
 
menu Get edit_1</pre>
 
menu Get edit_1</pre>
 +
 +
==== Example w/ ComboBox ====
 +
<pre>
 +
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
 +
</pre>
  
 
==== See Also ====
 
==== See Also ====

Revision as of 13:36, 22 September 2005

Menu Get

Menu

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. 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

menu Activate, menu Button, menu Check, menu Clear, menu Combo, menu Delete, menu Edit, menu Font Align, menu Font BGColor, menu Font Color, menu Font Name, menu Font Size, menu Font Style, menu Font Transparent, menu GetNum, menu Hide, menu HideEUO, menu Image Create, menu Image Ellipse, menu Image File, menu Image FloodFill, menu Image Line, menu Image Pix, menu Image PixLine, menu Image Pos, menu Image Rectangle, menu List, menu Set, menu Shape, menu Show, menu Text, menu Window Color, menu Window Size, menu Window Title, #menuRes

Main_Page Documentation

Menu