trichview.com

trichview.support




Re: How to insert a line-break


Return to index


Author

Message

Sergey Tkachenko

Posted: 10/25/2003 11:55:13


InsertText() treats CR or LF or CR+LF as paragraph breaks.

Use InsertTextW((WideChar)0x2028, false);


0x2028 is a "line separator" Unicode character.

(I tested in Delphi, it works. I hope C++Builder can convert WideChar to

WideString automatically like Delphi)



> How can I programmatically insert a line-break (shift + return key) at the

> current cursor position? Doing 'InsertText("\n")' or 'InsertText("\r")'

> seems to create a new paragraph.

>

> Thanks,

> Kei

>

>





Powered by ABC Amber Outlook Express Converter