WiseScript Editor Reference
127
Creating Custom Dialog Boxes
Border
Mark this to include a border around the edit field.
Uppercase / Lowercase
Mark one of these check boxes to convert all entered characters to a different
case.
Read Only
Mark this to prevent end users from entering data into the field.
Tab Stop
Mark this to let end users use the Tab key to give focus to this field. Make sure
this is marked for input fields.
RichEdit
Mark this to support rich text objects (example: formatted text, bold, italic, font
size variations, and colors). This causes rich text files to display properly.
Read Default Text from File
Enter the path of a text file. This path should be relative. Use variable
substitution (example: %MAINDIR% to refer to the destination directory) to
begin the path. The file contents are displayed in this field.
Min. Length / Max. Length
Enter the minimum or maximum allowed number of characters for text entered
in this field. To make the field optional, set the minimum length to zero.
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.
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.
4. Click OK.
Adding Graphic Controls
You can add graphics to be displayed on a dialog box. Graphic controls are static
controls, which means that the end user cannot make changes to them.
1. Open the dialog box in the Custom Dialog Editor.
See
Editing Dialog Boxes
on page 120.