How to get all the text(items) from TRichViewEdit (unicode)?

General TRichView support forum. Please post your questions here
Post Reply
Bonny
Posts: 10
Joined: Mon Jun 04, 2007 1:58 pm

How to get all the text(items) from TRichViewEdit (unicode)?

Post by Bonny »

Hi,


I am trying to get all the text from TRichViewEdit in Unicode.
The only function I found is:

GetCurrentItemTextW

But it only gives the line where the caret is located.
Without moving caret, is there some way to get all the lines? (all the items?)

I tried to use GetTextBuf but this doesnt return Unicode, but a translation to some codepage (which I don't want).


Thank you for your help,

Bonny
Bonny
Posts: 10
Joined: Mon Jun 04, 2007 1:58 pm

Post by Bonny »

I found a solution here:
http://www.trichview.com/forums/viewtopic.php?t=1527

Is there also a way to get the unicode text for each text line, without placing cursor? (So using some index)


Regards
Bonny
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

In any case, it would be unefficient. It's better to get the whole text and extract lines from it.
Post Reply