WiseScript Editor Reference
123
Creating Custom Dialog Boxes
For information about the settings dialog box for each control, see
About Dialog Box
Controls
on page 121.
4. Click OK to add the new control to the dialog box.
You can resize and move the control using its handles. To select multiple controls, use
Shift+click. To resize and move controls with more precision, double-click the control to
open its settings dialog box.
Adding Check Box Controls
Like radio buttons, a group of check boxes is considered a single control. However,
unlike radio buttons, the end user can select multiple check boxes. Alignment and
spacing between the individual check boxes is maintained by the Custom Dialog Editor.
Check boxes are often used to control the installation of components or sub-
components.
1. Open the dialog box in the Custom Dialog Editor.
See
Editing Dialog Boxes
on page 120.
2. Select Add menu > Checkbox.
The Checkbox Control Settings dialog box appears.
3. Complete the dialog box:
Checkbox Text
Enter the text options for the check boxes, one on each line. If the end user
selects the first check box, the letter A is appended to the variable that stores
the return value. If the end user selects the second check box, the letter B is
appended, and so on. The variable stores letters of all check boxes that are
selected. Example: If the end user marks the first, third, and fourth check
boxes, the variable is “ABD.”
Variable
Specify the name of the script variable that stores the return value of this dialog
box control.
Note
If you set the variable to a string containing one or more lowercase letters, the
corresponding options are unavailable in the radio button control when it
appears on the dialog box. Example: For a radio button with four options and a
variable of “ABcd,” last two options unavailable.
Sub-Components
If the check box control is being used to specify the components to be installed,
and if the components have sub-components, enter the names of sub-
component variables separated by commas.
Control Name
Enter the name by which you will refer to this control in the dialog box script.
Leave this blank if you will not manipulate this control with a script.
X-Position / Y-Position
Specify the exact location of the control on the dialog box. You can also use the
alignment commands to precisely arrange controls on the dialog box.
See
Aligning and Spacing Dialog Box Controls
on page 139.