menu SetDef
menu SetDef {key} {value...}Also searchable as: menu SetDef · default · defaults
menu SetDef changes one of the defaults the controls created after it take. The keys are listed on
menu GetDef. Controls that already exist keep what they have; change those with
menu SetProp.
Description
Section titled “Description”menu SetDef parent {name}makes new controls go into that window or panel.form0is the main window.fontnametakes the rest of the line. The others take one value.- Numbers must be written as numbers: a colour name such as
red, orrightfor the alignment, counts as 0. Themenu Fontsub-commands accept names and set the same defaults.
Example
Section titled “Example”menu Window Size 220 120menu Panel tools 10 10 200 60menu SetProp tools color $FFE0C0menu Button a 5 5 60 25 Onemenu SetDef parent form0menu Button b 10 80 60 25 Twomenu Showhalta goes into the panel; b, after menu SetDef parent form0, into the main window.
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.