This folder contains:
Classname: com.zerog.ia.customcode.dialogs.ZGDialogPanel
Description:
Implements ZGStandardDialog as a custom code panel action. Allows functionality similar to the DisplayMessageDialog
custom code action. ZGDialogPanel is useful (as opposed to ZGDialogAction)
when you want your user to see the dialog when clicking the back button as well
as clicking the forward button.
Input InstallAnywhere Variables:
“ZGDialogPanel_DefaultButtonText”:
optional variable that sets the text displayed on the default button. Default text is “OK”.
“ZGDialogPanel_CancelButtonText”: optional variable that sets the text
displayed on the cancel button.
Default text is “Cancel”.
“ZGDialogPanel_DetailsButtonText”: optional variable that sets the text
displayed on the details button.
Default text is “Details”.
“ZGDialogPanel_DetailsButtonOn”: optional variable that determines
whether the details button is shown.
Default behavior is that the details button is not shown.
“ZGDialogPanel_CancelButtonOn”: optional variable that determines
whether the cancel button is shown.
Default behavior is that the cancel button is not shown.
“ZGDialogPanel_Title”:
optional variable to set the dialog
window title. Default Title is
“ZGStandard Dialog (ZGDialogPanel_Title)”.
“ZGDialogPanel_Label”: optional variable to set the
dialog’s label text. Default
text is “Label goes here (ZGDialogPanel_Label)”.
“ZGDialogPanel_Narrative”: optional variable to set the dialog’s narrative text. Default is “Narrative Text Goes Here (ZGDialogPanel__Narrative)”;
Output InstallAnywhere Variables:
“ZGDialogPanel_Results”: returns the button that was pressed. Can be one of the following: “Default”, “Cancel”, “Details”, or “ERROR” (no quotes).
General Instructions:
This README explains how to set and take
advantage of the ZGDialogPanel custom code panel.
First you must add a “Show Custom Code
Panel” action somewhere in your installer (Show Custom Code Panel is not
available in the “Files” task of the installer)
Once you have added the “Show Custom
Code Panel” action to your project, you will need to select the JAR or
ZIP file that contains the desired action.
To select the JAR or ZIP file, click on the “Choose JAR or ZIP
…” button and select the file in the “Choose Code
Archive” dialog that appears.
Next you have to designate the
“Class:” that is to be called for the custom panel. In this case, you should enter “com.zerog.ia.customcode.dialogs.ZGDialogPanel” (no
quotes).
ZGDialogPanel will pop up a dialog box and display up to three
buttons. The Default button
is always shown, however you control the visibility of
the Cancel button and the Details button.
All variables in ZGDialogPanel are optional,
however it is a good idea to specify the title, label, and narrative text
variables, as the default text is merely a reminder to do so. There are a lot of variables available
for use with this custom code, however in practice you
should only use a few for each instance of ZGDialogPanel.
The button that was selected by the user
will be returned in the variable “ZGDialogPanel_Results”
as “Default”, “Cancel”, “Details”, or
“ERROR” regardless of whether or not you renamed your buttons.
The default behavior of ZGDialogPanel
pops up a panel with a title, narrative, and only the default button with its
text set to “OK”.
8 August 2000