trichview.com

trichview.support




Re: How can I move carret position?


Return to index


Author

Message

Sergey Tkachenko

Posted: 02/04/2003 23:00:41


You cannot use (Line,Col) coordinates to move caret.


You can use two methods:

- (ItemNo, Offset in Item) coordinates - method SetSelectionBounds, see

Yernar's answer

- using one number - position from the beginning of document (functions from

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



> Hi,

>

> RichviewEdit1.GetCurrentLineCol(Line, Col);

> RichviewEdit1.SetCurrentLineCol(Line, Col);  <== this method is invalid

>

> How can I move carret position in the RichviewEdit?

>

> Thanks.

>

>

>





Powered by ABC Amber Outlook Express Converter