watersco
Posts: 7
Joined: Mon Dec 11, 2006 6:45 am

Creating popup dialogs

How do I create an information dialog like the CancelDlg? I have tried deleting all of the controls from a normal dialog window, but I can't delete the Back, Next and Cancel buttons.

Thanks,

Chris.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

You can create a published event under the button that spawn the dialog, like this:
Event: SpawnDialog
Argument: <NewDialog>
Condition: the condition when to display this dialog.

Best Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
watersco
Posts: 7
Joined: Mon Dec 11, 2006 6:45 am

Hi,

I am able to make a dialog open, but I am not sure how to make the dialog look like a modal dialog. i.e. how do I remove the Next, Back and Cancel buttons from it? When I right click on these buttons the Remove menu option is grayed out.

In addition the CancelDlg shows up as a subelement of every dialog. Why is that? I can't see how to make another dialog into a subdialog.

Thanks,

Chris.
watersco
Posts: 7
Joined: Mon Dec 11, 2006 6:45 am

OK, I worked out that the nesting is to show what dialogs can be spawned from the current dialog. Then the problem is really that I can't create a suitable dialog to spawn.

In addition the ErrorDlg doesn't show as an option when I create a new published even. All of the other dialogs are there. Any idea why the ErrorDlg doesn't show up?

Thanks,

Chris.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Chris,

Here is an example on how to spawn a dialog (modal) when a button is pressed:

1. Select the button in question and add a published event on it.
2. In the "New Control Event" dialog choose "SpawnDialog" in the "Name" field, <NewDialog> in the "Argument" field. You can specify a condition for this dialog to be displayed.

You can customize the new added dialog to fit your needs.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”