Modal dialog won't go away

Got a problem you cannot solve? Try here.
rtomsmith
Posts: 13
Joined: Sat Sep 09, 2006 9:54 am

Modal dialog won't go away

Postby rtomsmith » Thu Sep 28, 2006 4:40 pm

Hello, I have a strange problem. In the updates script I have a need to display a dialog with an OK button (essentially a MessageBox). The beahvior I want is to display a message balloon alerting the user and including a "click here" type message. When the user clicks the tray icon my new dialog would display with extended information. When the user clicks OK in that dialog, the script would continue.

Well everything works just fine, except that when the user clicks the OK button in the dialog, the dialog remains displayed. The script continues its execution but the dialog will not be dismissed (visually). I know it sounds like I may have the the dialog non-modal, but I haven't - it is modal. I even tried a Hide Dialog just for grins, but no effect.

Any ideas? Thanks.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Fri Sep 29, 2006 3:31 am

Because of dialog caching, the dialog will actually be replaced with a new one when you display a new dialog, either modally or modelessly.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Postby jimo » Fri Sep 29, 2006 7:30 am

As the next line in the script after the user presses OK try minimizing the dialog to the system tray. This may produce the visual experience you are looking for.
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 27 guests