WiseScript Editor Reference
124
Creating Custom Dialog Boxes
Note
A dialog unit is based on the size of the dialog font, usually 8-point MS Sans
Serif. A horizontal dialog unit is 1/4 the average width of the font and a vertical
dialog unit is 1/8 the average height of the font.
Width / Height
Specify the exact dimensions of the control in dialog units. You can also resize
controls by dragging their handles, though this is not as precise.
Components
If this is marked, the sizes of the components that correspond to the variable
specified are displayed to the right of the check boxes. Normally, you mark this
check box only if you are selecting components and you have specified the
COMPONENTS variable.
Retain Disabled
If you set the check box variable so that some of its options are disabled, those
options become enabled if the end user proceeds to the next dialog box and
uses the Back button. Mark this check box to cause any lowercase letters in the
variable to stay in the variable, which makes disabled options retain their
disabled state even when the end user navigates between dialog boxes. If this
check box is cleared, the variable takes the value of the option that was
selected, and the lowercase information is lost.
4. Click OK.
Adding Combo Box Controls
A combo box can take three forms: a list box, a drop-down list, and a drop-down list
that can accept text entry. In the text entry drop-down list, end users can enter text or
select a value from the list. The size of a combo box determines where the drop-down
list drops.
Note
When you place a combo box, you must resize the bounding box so that it is taller than
the visible combo box. Otherwise, the drop-down list fails to drop down when the
installation runs.
1. Open the dialog box in the Custom Dialog Editor.
See
Editing Dialog Boxes
on page 120.
2. Select Add menu > Combo Box.
The Combo Box Control Settings dialog box appears.
3. Complete the dialog box:
Combo Box Text
Enter the text to be displayed in the list. Enter one item per line.
Sort
Mark this to sort the combo box items into ascending order.
Vert. Scroll
Mark this to let the end user scroll vertically if there are more items than fit into
the allocated space.