WiseScript Package Editor Reference
218
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.
Default Button
Mark this to make this the default button, that is, the one that is selected if the
end user presses the Enter key. Specify only one default button per dialog box.
Do Not Check Fields
Mark this to suppress directory confirmation and field validity checking (useful
for Browse buttons).
4. Click OK.
The sample script Event Handler.wse uses scripting to handle push button controls. For
details on sample scripts, see ScriptHelp.htm in the Samples subdirectory of this
product’s installation directory.
Adding Radio Button Controls
A group of radio buttons is considered a single control. The end user can select only one
button from the group. Alignment and spacing between the individual buttons is
maintained by the Custom Dialog Editor.
1. Open the dialog box in the Custom Dialog Editor.
See
Editing Dialog Boxes
on page 203.
2. Select Add menu > Radio Button.
The Radio Button Control Settings dialog box appears.
3. Complete the dialog box:
Radio Button Text
Enter the text options for the radio buttons, one on each line. If the end user
selects the first radio button, the letter A will be put into the variable that stores
the return value. If the end user selects the second radio button, the letter B is
returned, and so on.
Retain Disabled
If you set the radio button 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.
Variable
Specify the name of the script variable that stores the return value of this dialog
box control.
Содержание WISESCRIPT PACKAGE EDITOR 8.0
Страница 1: ...WiseScript Package Editor Reference ...