Modal dialog won't go away

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

Modal dialog won't go away

Post by rtomsmith »

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:

Post by MichaelNesmith »

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
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

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
Post Reply