trichview.com

trichview.support




Re: Save Caret Position


Return to index


Author

Message

Sergey Tkachenko

Posted: 08/07/2004 14:41:21


You can use functions from RVLinear.pas.

This unit is included in the registered version, or can be downloaded here:

http://www.trichview.com/support/files/rvlinear.zip


>

> I want to save the current caret position to restore later. I can use this

> to save:

>

> ItemNo:=rve.TopLevelEditor.CurItemNo;

> Offs:=rve.TopLevelEditor.OffsetInCurItem;

>

> and this to restore:

>

> rve.SetSelectionBounds(ItemNo,Offs,ItemNo,Offs);

>

> However, if the caret is inside a table the above code does not work. How

> do I save and restore the caret postion inside a table?

>

> Thanks





Powered by ABC Amber Outlook Express Converter