Page 1 of 1

Modal dialog won't go away

Posted: Thu Sep 28, 2006 4:40 pm
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.

Posted: Fri Sep 29, 2006 3:31 am
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.

Posted: Fri Sep 29, 2006 7:30 am
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.