trichview.com

trichview.support




Problems to use get and setselectionbounds


Return to index


Author

Message

Avelium

Posted: 03/08/2002 20:32:06


Hi,


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


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) ?


I've tried to use GetSelectionBounds and SetSelectionBounds. If i use them

in your demo editor that work only

with SetSelectionBounds(StartItemNo, StartItemOffs, EndItemNo,

EndItemOffs+1); (I put getselectionbounds in the event OnSelect)

I not understand how it's work exactly. Peraps EnItemNo is only considered

to be the last selected item selected by shift or the mouse? So when i use

EndItemOffs+1 to add one item in the selection it's the good way?  In my

software that do not work ?! The selected part text is totally bad. Thanks

for your help Sergey!











Powered by ABC Amber Outlook Express Converter