Skip to content

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.

  • menu SetDef parent {name} makes new controls go into that window or panel. form0 is the main window.
  • fontname takes the rest of the line. The others take one value.
  • Numbers must be written as numbers: a colour name such as red, or right for the alignment, counts as 0. The menu Font sub-commands accept names and set the same defaults.
menu Window Size 220 120
menu Panel tools 10 10 200 60
menu SetProp tools color $FFE0C0
menu Button a 5 5 60 25 One
menu SetDef parent form0
menu Button b 10 80 60 25 Two
menu Show
halt

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