trichview.com

trichview.support




Re: Problems to use get and setselectionbounds


Return to index


Author

Message

Sergey Tkachenko

Posted: 03/08/2002 22:18:21


> Are trichview and trichviewedit use same %CPU time and memory usage?


Yes, almost.



> I use richviewedit and i use search function to select text.

> "aaaaaaaaaaaaaaaaatextaaaaaaaaa bbbbbbbbbbbb"

> I search text and text is selected but after how i can select

> "textaaaaaaaaa" (The right part of the word before space character) ?


Assuming that this is the first item in rv, and this text has the same

formattin (i.e. all in one item),

the code will be


rv.SetSelectionBounds(0, 18, 0, 31);

rv.Invalidate;


because the first 't' has index 18 in this string, and the space has index

31 (If I did not miscalculate indices).






Powered by ABC Amber Outlook Express Converter