Click to See Complete Forum and Search --> : Adding new lines when setting Edit box text


chrishowarth
July 3rd, 2007, 03:29 PM
Hello ~

I am trying to set the text in my multi-lined Edit control using Send Message (WM_SETTEXT). I am trying to get my Edit control to fill up with JavaScript code, with each parameter a variable that has just been set via a dialog. Obviously, I do not want all this code appearing on one line.

As I want to add blank lines, I am using "\n". However, when I compile my program, instead of a newline I get a square nought. How do I sourt out this problem?

Thanks;

Chris Howarth

Martin O
July 3rd, 2007, 03:56 PM
Try "\r\n"

chrishowarth
July 3rd, 2007, 04:04 PM
It works, thanks!