Controlling the size of the "MessageBox"

Got a problem you cannot solve? Try here.
AdrianGray
Posts: 32
Joined: Fri Jul 25, 2014 5:21 am

Controlling the size of the "MessageBox"

Postby AdrianGray » Thu Apr 16, 2015 6:50 pm

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.

bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: Controlling the size of the "MessageBox"

Postby bokkie » Fri Apr 17, 2015 10:55 am

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.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Controlling the size of the "MessageBox"

Postby FrancescoT » Fri Apr 17, 2015 12:49 pm

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 129 guests