Mulitline Edit Box
-
Hi! I want to display multiline text in the edit box. I use CString as a member variable. In edit box properties I checked Multiline. The text is from dialog based application and it consist of data. I would like to display each data in new line but when I use Format with “\n” I don’t get new line instead I get small black rectangle character. After the small rectangle there’s no new line. So what I should do to get new line displayed? Thanks in advance.
-
Hi! I want to display multiline text in the edit box. I use CString as a member variable. In edit box properties I checked Multiline. The text is from dialog based application and it consist of data. I would like to display each data in new line but when I use Format with “\n” I don’t get new line instead I get small black rectangle character. After the small rectangle there’s no new line. So what I should do to get new line displayed? Thanks in advance.
Johnny Peszek wrote: ...when I use Format with “\n” I don’t get new line instead I get small black rectangle character. Use \r\n instead.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
-
Johnny Peszek wrote: ...when I use Format with “\n” I don’t get new line instead I get small black rectangle character. Use \r\n instead.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
Thanks a lot it works great!!!
-
Hi! I want to display multiline text in the edit box. I use CString as a member variable. In edit box properties I checked Multiline. The text is from dialog based application and it consist of data. I would like to display each data in new line but when I use Format with “\n” I don’t get new line instead I get small black rectangle character. After the small rectangle there’s no new line. So what I should do to get new line displayed? Thanks in advance.
As a rule of thumb (there are some variations to this rule - like with message boxes in Windows), when it comes to text just remember this... \n - Unix/Linux/MacOS X/etc. \r\n - Windows/DOS \r - MacOS 1-9 Jeremy Falcon
-
As a rule of thumb (there are some variations to this rule - like with message boxes in Windows), when it comes to text just remember this... \n - Unix/Linux/MacOS X/etc. \r\n - Windows/DOS \r - MacOS 1-9 Jeremy Falcon
Thanks!
-
Johnny Peszek wrote: ...when I use Format with “\n” I don’t get new line instead I get small black rectangle character. Use \r\n instead.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
what's the format with "\r" process? msn:Flashcutreg@hotmail.com
-
what's the format with "\r" process? msn:Flashcutreg@hotmail.com
Format with "\r" stands for "carriage return" which is an escape sequence.