MessageBox and Dialog

Got a problem you cannot solve? Try here.
Post Reply
Arthur
Posts: 12
Joined: Thu Sep 13, 2012 12:40 pm

MessageBox and Dialog

Post by Arthur »

I have a custom Dialog that has a radial button. The radial button calls a variable to display a MessageBox after clicking on Next.

The MessageBox displays correctly, but the Dialog is still in view. How can I remove the Dialog box and just show the MessageBox. I added a Hide Dialog right before the MessageBox, but did not work.

I've attached the custom Dialog.

Code: Select all

~InstallAware Clipboard Data~
~End~
~{6306B391-7413-464C-B0C4-04050A1F8A59}~
~Terminate Install~
~{D715E657-A8CC-4BF4-AD2B-EC8D30ED236F}~
~If~
~{7A141190-C253-49F0-B136-EC56E205814B}~
~WIZARD~
~0~
~CANCEL~
~FALSE~
~Comment~
~{9ED9EDDF-0D96-4624-B142-1B126620D82C}~
~Exit Setup if Wizard Loop cancelled~
~Label~
~{43877A9A-6C4A-4792-91CA-BF1DDB2EFD0A}~
~Main Install~
~Comment~
~{744D3B38-C0D4-43DB-834D-2599C8023F29}~
~~
~End~
~{A86BE49F-3AB7-4ADE-A9D8-7F2718CC20AD}~
~MessageBox~
~{D7D4B0D1-1751-4904-A013-7416EF9F5FD1}~
~~
~Uninstall!~
~0~
~1~
~~
~If~
~{D770ECD4-AA11-4CDA-805C-2DE5C8E45A39}~
~UNINSTALL~
~0~
~TRUE~
~FALSE~
~Hide Dialog~
~{A4891CED-C7C4-4CE0-A313-02B5EAE0F1C1}~
~Comment~
~{F7661B54-92EA-4FBD-A2F9-4CDC4AE6434C}~
~~
~Display Dialog~
~{F6F528FE-F96E-4942-B110-B6035F28035E}~
~Farmers_Uninstall_Exit~
~WIZARD~
~TRUE~
~~
~TRUE~
~FALSE~
~Comment~
~{0A9F41FB-BB0B-45DB-9352-D21B4B62E9A8}~
~~
~Set Variable~
~{116324DB-0B24-4850-B766-732011C7CCA1}~
~UNINSTALL$MYAH$MYAH$FALSE~
~FALSE~
Attachments
Dialog MessageBox Test.7z
(341.62 KiB) Downloaded 359 times
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: MessageBox and Dialog

Post by FrancescoT »

Dear Arthur,

the Hide Dialog command can be only used with Modeless Dialogs.

The one you use is a Modal Dialog and this remains active, until another Dialog gets displayed or if the process itself terminates.
This happens because the last active Modal Dialog becomes the main Windows of the running process.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Arthur
Posts: 12
Joined: Thu Sep 13, 2012 12:40 pm

Re: MessageBox and Dialog

Post by Arthur »

That helps. Thank you.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: MessageBox and Dialog

Post by FrancescoT »

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply