trichview.com

trichview.support




Re: Items vs Multi-lines text


Return to index


Author

Message

Sergey Tkachenko

Posted: 01/29/2002 13:35:00


You can try to

- store last item index in some class field, say CachedItemNo

- when you need the actual item index, use a function like


if (CachedItemNo<0) or (CachedItemNo>=RVData.Items.Count) or

  (RVData.GetItem(CachedItemNo)<>Self) then

  CachedItemNo := RVData.GetItemNo(Self);

Result := CachedItemNo;


where RVData is an object containing this item.


RichView tables work in this way.



> I seek the best way to deal with multi-lines text?!  I've tried to deal

with

> new item class (derived from TRVTextItemInfo), the insertion seem to be

> ok... But each time we made some changes on the RichViewEdit's text, new

> item appear and other merge...

> So all the ItemNo stored in the new item class become unusable... We need

to

> be able to keep track of each items.

>

> Any hint or help welcome.

> Thanks in advance,

>

> Jean Francoeur

>

>





Powered by ABC Amber Outlook Express Converter