Board index » cppbuilder » Centering text on a MessageDlg

Centering text on a MessageDlg


2006-08-14 06:24:12 PM
cppbuilder89
I'm using a MessageDlg box to prompt a user for a response.
However the the Msg string is too long to display using a single line so I
break it up using CRLF's ie '\n'
The problem is that the text is always left justified. Is there anyway of
making it center justified ???
Thanks in advance
David
 
 

Re:Centering text on a MessageDlg

You could just add some dummy spaces.
"David" < XXXX@XXXXX.COM >wrote:
Quote
The problem is that the text is always left justified. Is there anyway of
making it center justified ???

Thanks in advance
David


 

Re:Centering text on a MessageDlg

MessageDlg uses the native Windows MessageBox function it has no centering
features. Make up your own window or dialog box and center your text in it.
. Ed
Quote
David wrote in message
news:44e04f49$ XXXX@XXXXX.COM ...

I'm using a MessageDlg box to prompt a user for a response.

However the the Msg string is too long to display using a single line so I
break it up using CRLF's ie '\n'

The problem is that the text is always left justified. Is there anyway of
making it center justified ???
 

{smallsort}