Skip to content

menu PushDef

menu PushDef

Also searchable as: menu PushDef · save defaults

menu PushDef saves a copy of the defaults new controls are created with: the font, the colour and the parent. menu PopDef brings a saved copy back.

menu Window Size 300 70
menu PushDef
menu Font Style b
menu Panel header 0 0 300 30
menu Text title 5 5 Settings
menu PopDef
menu Text body 5 40 Plain text, in the main window again
menu Show
halt

These are quirks of EasyUO 1.6, kept as they are:

  • The alignment is not saved: after menu PopDef it is left.
  • Copies are added at the end of a list and menu PopDef takes the first one, so nested pairs come back in the wrong order. Use one menu PushDef / menu PopDef pair at a time.

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.