Difference between revisions of "Menu Button"

From Wiki
Jump to: navigation, search
m (added menubutton link)
m (moved to body, clarified slightly. thank for helping out!)
Line 1: Line 1:
 
{{command header|Menu}}
 
{{command header|Menu}}
  
{{body|menu Button {name} {x} {y} {width} {height} {text}|The [[menu Button]] command creates a button on the EasyUO menu window at the specified postion with the specified size.}}
+
{{body|menu Button {name} {x} {y} {width} {height} {text}|The [[menu Button]] command creates a button on the EasyUO menu window at the specified postion with the specified size.
 +
 
 +
The #[[MenuButton]] system variable gives the name of the last button that was pressed.}}
  
 
   
 
   
Line 12: Line 14:
 
; you will reference the NAME and not the displayed TEXT.
 
; you will reference the NAME and not the displayed TEXT.
 
menu Button button_1 10 20 50 25 Click me!</pre>
 
menu Button button_1 10 20 50 25 Click me!</pre>
 
Use [[MenuButton]] to access current Button state.
 
  
 
{{footer}}
 
{{footer}}

Revision as of 10:03, 12 December 2005


Synopsis

menu Button {name} {x} {y} {width} {height} {text}

Description

The menu Button command creates a button on the EasyUO menu window at the specified postion with the specified size.

The #MenuButton system variable gives the name of the last button that was pressed.


Example

; This will create a button named button_1 in position 10 20
; with a width of 50 and hight of 25. The text on the button
; will say Click me!
; Note that when refering to this button later in the script
; you will reference the NAME and not the displayed TEXT.
menu Button button_1 10 20 50 25 Click me!

See also

Main Page Documentation