Axonn
15th November 2005 12:12 UTC
Line breaks in message boxes
Hi everybody. I got a rather easy question for y'all... is it possible to add a line break within the text of a message box? How can I do it? I tried like it's done in C++:
MessageBox MB_ICONINFORMATION|MB_OK "Line 1\r\nLine 2".
But of course it doesn't work : |.
Instructor
15th November 2005 12:26 UTC
MessageBox MB_ICONINFORMATION|MB_OK "Line 1$\nLine 2".
Axonn
15th November 2005 12:43 UTC
Thanks dude! It works : D.
Afrow UK
15th November 2005 15:02 UTC
Apparently you should use $\r$\n in Windows but $\n seems to work just fine as well.
-Stu
Axonn
16th November 2005 07:14 UTC
Yeap
Well then I would prefer using the $\r$\n : D.
Joost Verburg
16th November 2005 08:35 UTC
In C, \n is automatically converted to the system line break (carriage return + line break). In NSIS scripts, $\r and $\n represent carriable return and line break.
Deko Servidoni
16th April 2010 19:07 UTC
-> $\r$\n
-> MessageBox MB_ICONINFORMATION|MB_OK "Line 1$\nLine 2".
This two way works =]
thx for the help guys