Setting Variables

 

Any information which is needed by the Dialog Box Controls should defined in the script prior to the dialog code. By setting the variables, you can pass lists, files, and set which options are chosen by default.

 

In the script example, the variables are set at the top.

 

 

Using the Dialog Editor

Control Attributes

Running Dialog Scripts

WIL Dialog - Dialog Attributes

 

;;set variables

;;the list for the item box.
tunes="My Shirona%@tab%In the Mood%@tab%StayingAlive%@tab%RockLobster"

;;the contents of the varytext.
song="Yellow Submarine"
music=2 ;sets the radiobutton as default
volume=1 ;pre-selects checkbox.