How to save selectionbound for future use

General TRichView support forum. Please post your questions here
Post Reply
eLan
Posts: 8
Joined: Fri Apr 07, 2006 7:32 am

How to save selectionbound for future use

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Use functions from RVLinear.pas
Post Reply