Page 1 of 1

How to save selectionbound for future use

Posted: Sat Jan 12, 2008 5:34 am
by eLan
Hi, I want to save a set of selection ranges and then set them back after some edition(insert, delete, paste) in TRichViewEdit.

I use GetSelectionBound to store the itemno and offset information. It seems to work fine with insert operation ( I have to update offset myself). However, the ItemNo and offset become invalid when doing either delete or paste in TRichViewEdit. Nor will it be working by saving reference to RVItemInfo

Is there any way to keep track of the item information so that I could use it later after edit operation? Thanks.

Posted: Sat Jan 12, 2008 11:05 am
by Sergey Tkachenko
Use functions from RVLinear.pas