2009

Table Of Contents
The fieldMaxValue and fieldMinValue flags set the minimum and
maximum values for the field beside the slider.
The label flag sets the text that appears to the left of the slider.
Separator commands
separator -height 20 -width 120;
The command separator creates a horizontal line. It is used to space the
controls vertically in the window. The separator command has multiple flags.
The width flag sets the visible width of the separator.
The height flag sets the amount of vertical spacing created by the separator.
Check box commands
$box_sim_checkbox = `checkBox -value 1 -label "Box Simulation"`;
$sphere_sim_checkbox = `checkBox -value 0 -label "Sphere Simu
lation"`; separator -height 20 -width 120; $execution_button=
`button -label "Execute!" -command "print (\"something\");"`;
The command checkBox creates a check box. The check box command has
multiple flags. The name and path of the check box are stored as a variable.
See
Storing control names on page 629.
The value flag sets the initial value of the check box.
ShowWindow command
showWindow;
This command enables the last created windows visibility. For more
information, see Creating a window on page 624.
NOTE In the script above, you do not explicitly declare your variables. This is
because the return type of user interface creation commands is known to be a
string, and cannot be any other data type. Later in the lesson, you will allow a
data type to be implied, as you do not know what data type the return will be.
Loading a script file | 635