WiseScript Editor Reference
125
Creating Custom Dialog Boxes
Auto HScroll
Mark this to scroll the text entry field horizontally if more text is entered than
fits.
ProgMan Groups
Mark this to have the items in the Programs group of the Windows Start menu
appear in the combo box.
Drive List
Mark this to display the end user’s available drives in the combo box. The value
returned is a letter and a colon (example: C:).
Directory
Mark this to remove trailing backslashes from the text before it is placed in the
variable.
Confirm If Exists
Mark this to prompt for confirmation if the path that the end user enters already
exists on the destination computer. Clear this check box to prevent the “This
directory already exists” message from appearing.
Variable
Specify the name of the script variable that stores the return value of this dialog
box control.
Note
To cause an option in the list to be pre-selected, use a Set Variable action to set
a variable to the value of one of the options. Then select that variable in the
Variable field.
Combo Box Type
Select the combo box type:
Simple. List box from which end users can make a selection.
Drop Down. Drop-down list that allows text entry or selection from the list.
Drop List. Drop-down list that only allows selection from the list.
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.
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.