WiseScript Package Editor Reference
226
Creating Custom Dialog Boxes
Keeping Disabled Controls From Reactivating
This problem affects radio buttons and check boxes.
Example:
A dialog box in a wizard loop has a radio button with four options. You disable several
options by setting the variable associated with the radio button to “ABcd.” The lowercase
“c” and “d” disable the third and fourth options. If the end user selects an option and
continues through the wizard dialog boxes, the dialog box works as designed. However,
if the end user clicks the Back button to return to the dialog box that contains the radio
button, then all four of the button’s options are enabled.
To correct this problem, mark the Retain Disabled check box on the settings dialog box
for radio buttons and check boxes. This causes any lowercase letters in the variable to
stay in the variable, even when the end user navigates between dialog boxes.
In the example above, if Retain Disabled is marked and an end user selects the first
radio button option, the value of the variable is set to “cdA” (uppercase “A” because the
user selected the first option.) If Retain Disabled is not marked, the radio button's
variable is set to “A.” That is why all four radio buttons are enabled when the end user
backs up, because the variable does not contain “a,” “b,” “c,” or “d.”
About Custom Dialog Box Sets
A single Custom Dialog script action can display a set of related dialog boxes. You do this
by using a button on one dialog box as a gateway to another dialog box. This secondary
dialog box can link to another dialog box, link back to the master dialog box, or return to
the installation script. A single dialog box set can contain up to 256 separate dialog
boxes. In WiseScript Package Editor, the Select Destination Directory and Backup
Replaced Files dialog boxes on the Dialogs page are a dialog box set.
Generally, dialog box sets consist of one dialog box and the other dialog boxes that it
calls. (Example: A dialog box might have an Options and Browse buttons, each of which
opens a dialog box. The three dialog boxes together comprise a dialog box set.) The
main dialog boxes that appear during installation are not a dialog box set, but are
controlled by a Wizard Loop action in the script.
Creating a Dialog Box Set
1. Create the master dialog box.
See
Adding a Dialog Box to the Installation
on page 202.
The master dialog box is the first dialog box that is displayed when the associated
Custom Dialog script action is executed.
2. In the Custom Dialog Editor, select File menu > New Dialog.
The Dialog Box Properties dialog box appears.
3. Complete the dialog box and click OK.
See
Setting Dialog Box Properties
on page 204.
4. Configure the new dialog box.
See
Adding and Editing Dialog Box Controls
on page 206.
5. Link the set of dialog boxes together using push button controls. For information on
the various actions you can assign to a button, see
Adding Push Button Controls
on
Содержание WISESCRIPT PACKAGE EDITOR 8.0
Страница 1: ...WiseScript Package Editor Reference ...