Controlling the size of the "MessageBox"
-
- Posts: 32
- Joined: Fri Jul 25, 2014 5:21 am
Controlling the size of the "MessageBox"
I am reporting errors from an SQL Server script. Occasionally the message is very large and the MessageBox extends below the bottom of the screen, hiding the buttons from the user. Is there a another option I should use which has scroll bars... so that the buttons remain visible (EG A dialog) or is there a way to configure the MessageBox? Thanks, Adrian.
Re: Controlling the size of the "MessageBox"
Adrian,
Just thinking aloud here but do you get the text before the message box is given it? If so, you could think of splicing it up and inserting some new line characters into the reassembled string. That should let the message box resize itself more "intelligently" but I can't guarantee it'll look 100% the way you'd like it.
Just thinking aloud here but do you get the text before the message box is given it? If so, you could think of splicing it up and inserting some new line characters into the reassembled string. That should let the message box resize itself more "intelligently" but I can't guarantee it'll look 100% the way you'd like it.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
InstallAware MVP
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Controlling the size of the "MessageBox"
Dear Adrian,
you could create a custom dialog with a scrollable text-control to use in place of the standard Message-Box ... or you may display a generic error with a Message-Box and to store more detailed information in a log file.
Regards
you could create a custom dialog with a scrollable text-control to use in place of the standard Message-Box ... or you may display a generic error with a Message-Box and to store more detailed information in a log file.
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
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
Who is online
Users browsing this forum: No registered users and 129 guests