trichview.com

trichview.support




Re: ScanURL Question!


Return to index


Author

Message

Sergey Tkachenko

Posted: 01/13/2003 13:53:34


No, it's possible.


The file

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

contains unit with two functions

procedure RVGetSelection(rv: TCustomRichView; var SelStart, SelLength:

Integer);

procedure RVSetSelection(rv: TCustomRichView; SelStart, SelLength: Integer);

allowing to get/set selection in RichEdit-like coordinates - SelStart and

SelLength.

These values are not changed after url scanning and can be used to

store/restore selection (caret position)


>

> I'm afraid it's not possible to jump exactly into the original cursor

position,

> because index of that item will change.

>

>

> "sheep" <[email protected]> wrote:

> >

> >In the ScanURL ,How can i go back to the original cursor position in the

> richviewedit

> >after ScanURL??

>





Powered by ABC Amber Outlook Express Converter