in reply to Win32::Gui Textarea question

In non-Unicode settings, I believe Windows' multi-line edit controls internally use "\x0D\x0A" bytes for hard line breaks, and "\x0D\x0D\x0A" for word wraps.

If you have to deal with a certain platform's byte sequences for line breaks, don't just use the semantic names "\n" or "\r", but get specific with hex or octal codes. "\n" should be read as "whatever newline this platform *usually* likes."

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re: Re: Win32::Gui Textarea question
by Anonymous Monk on May 14, 2003 at 13:20 UTC
    Thank you halley, that was exactly the answer I was looking for. If I could ++ you I would.