menu SetProp
menu SetProp {name} {property} {value...}Also searchable as: menu SetProp · property · change property · tooltip
menu SetProp changes one property of a control, or of a window made by menu Form
(the main window is form0). The properties are listed on menu GetProp.
Parameters
Section titled “Parameters”| Parameter | Meaning |
|---|---|
name |
The control or window. |
property |
Which property; not case-sensitive. |
value |
The new value; for text properties, the rest of the line. |
Description
Section titled “Description”- Text properties (
text,tooltip,fontname) take the rest of the line. - Numbers must be written as numbers. A colour name such as
redcounts as 0, which is black: use$0000FFfor red. - Yes/no properties:
#true, or any number other than 0, is yes. parentmoves the control into another window or panel by its name, keeping itsleftandtop. A label or an image cannot hold controls; neither can the control itself.widthandheightof a form set the size of its inside, exactly.
Example
Section titled “Example”menu Form opts 300 200 200 100 Optionsmenu Button ok 60 60 80 25 OKmenu SetProp ok tooltip Saves the options and closes the windowmenu SetProp ok fontstyle 1menu SetProp opts color $C0FFC0menu SetProp opts visible #trueset #MenuButton N/Awhile #MenuButton = N/A wait 1menu SetProp opts visible #falsehaltSee 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.