adding a linebreak/carriage return after calling InsertText

General TRichView support forum. Please post your questions here
Post Reply
kabal
Posts: 6
Joined: Tue Sep 02, 2008 12:05 pm

adding a linebreak/carriage return after calling InsertText

Post by kabal »

Hi there

I am adding strings at runtime to a TRichViewEdit using InsertText.

I have looked through the help, and tried searching this forum, but have come up with no solution to insert a line break /CRFL or 2 after the text has been entered.

How can do accomplish this?
Thanks in advance
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Just add #13#13 at the end of inserted text.
(version 10.4 has a bug, #13 at the beginning of inserted text are ignored)
kabal
Posts: 6
Joined: Tue Sep 02, 2008 12:05 pm

Post by kabal »

thanks sergey, just discovered that would work about 5 minutes after making the post, obviously I didnt read the help properly :oops: :)

thanks for the prompt reply
Post Reply