WiseScript Package Editor Reference
130
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.
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 121.
2. Select Add menu > Graphic in the Custom Dialog Editor.
The Graphic Control Settings dialog box appears.
3. Complete the dialog box:
Graphic Pathname
Specify the path for the bitmap graphic to add to the dialog box.
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.
Do not resize bitmap graphic
Normally, graphics are resized if the dialog box needs to be made larger
(example: if the destination computer uses a larger font size). Mark this check
box to keep the graphic at the same size, regardless of the system settings.
Because this option may cause the graphic to appear in a different place on the
dialog box, test the installation thoroughly.
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 140.
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.