Page 1 of 1

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

Posted: Fri Jul 06, 2007 7:46 am
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

Posted: Fri Jul 06, 2007 8:10 am
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

Posted: Fri Jul 06, 2007 10:47 am
by Sergey Tkachenko
In any case, it would be unefficient. It's better to get the whole text and extract lines from it.