menu Panel
menu Panel {name} {x} {y} {width} {height}Also searchable as: menu Panel · group · container · frame
menu Panel creates a rectangle without a border, in the default colour, that holds
other controls. Positions inside it are counted from its own top-left corner.
Parameters
Section titled “Parameters”| Parameter | Meaning |
|---|---|
name |
The panel’s name. |
x, y |
Position inside the current default parent. |
width, height |
Size in pixels. |
Description
Section titled “Description”- Controls created after it go into it, as with
menu Form, until another form or panel,menu SetDef parent,menu PopDeformenu Clear. - What happens to the panel happens to its contents: hiding it with
menu SetProp{name} visible #falsehides them, moving it moves them, andmenu Deleteremoves them. - Radio buttons in one panel form their own group.
- Give it a colour with
menu SetProp {name} color {number}.
Example
Section titled “Example”menu Window Size 220 130menu Panel size 10 10 200 30menu Radio small 5 5 60 20 #true Smallmenu Radio large 80 5 60 20 #false Largemenu SetDef parent form0menu Panel speed 10 50 200 30menu Radio slow 5 5 60 20 #true Slowmenu Radio fast 80 5 60 20 #false Fastmenu SetDef parent form0menu Button ok 70 95 80 25 OKmenu ShowhaltThe two pairs of radio buttons are independent, because each pair has its own panel.
See also
The EasyUO 1.6 behaviour on this page was researched with help from the ScriptUO community: Gaderian's tutorial New Menu Code and how to adapt old scripts and the scripts its members share at scriptuo.com.