WiseScript Package Editor Reference
138
Creating Custom Dialog Boxes
Note
If you set the variable to a string containing one or more lowercase letters, the
corresponding options are disabled in the radio button control when it appears
on the dialog box. Example: A radio button with four options and a variable of
“ABcd” would have the last two options disabled.
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 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.
The sample script License Agreement.wse uses scripting to handle radio button controls.
For details on sample scripts, see ScriptHelp.htm in the Samples subdirectory of this
product’s installation directory.
Adding Rectangle Controls
Use the Rectangle dialog box control to draw a box on the dialog box. Rectangle 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 > Rectangle.
The Frame/Rectangle Control Settings dialog box appears.
3. Complete the dialog box:
Type
Select Frame or Rectangle. Operating systems used to treat rectangles and
frames differently, but now there is no longer any difference.
Bevel
Specify the 3D appearance of the frames or rectangles:
Inset. Frame/rectangle appears to sink into the dialog box.
Flush. Frame/rectangle appears at the same level with the dialog box.
Outset. Frame/rectangle appears to pop out of the dialog box.