Board index » cppbuilder » Text wrapping on Message Dialog Boxes

Text wrapping on Message Dialog Boxes


2005-05-07 08:14:35 PM
cppbuilder43
Greetings
How do you get the text to wrap on MessageDlg or MessageBox Dialogs so that
the dialog box doesn't become extremely long ??
Thanks in advance
David
 
 

Re:Text wrapping on Message Dialog Boxes

"David" < XXXX@XXXXX.COM >wrote:
Quote

How do you get the text to wrap on MessageDlg or MessageBox
Dialogs so that the dialog box doesn't become extremely
long ??
Add a cr/lf. For example:
AnsiString S;
S.sprintf("%s\n%s\n%s", SomeText1, SomeText2, SomeText3 );
or
S = "Line1\nLine2\nLine3";
then pass a pointer to the string instead of the litteral:
S.c_str()
~ JD
 

Re:Text wrapping on Message Dialog Boxes

"David" < XXXX@XXXXX.COM >wrote in message
Quote
How do you get the text to wrap on MessageDlg or MessageBox Dialogs
so that the dialog box doesn't become extremely long ??
Place "\n" characters in your message strings.
Gambit
 

{smallsort}