trichview.com

trichview.support




Re: Carat after Format


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/02/2003 20:58:48


Hi, this is an undocumented method called internally inside TRichView.Format

or in some other cases.

The parameters used in that example are the same that used internally when

TRichView window width is changed, or by TRVRuler (included in

RichViewActions) when it changes margins.

With these parameters the caret position is retained, so you do not need to

use SetSelectionBounds or other functions to store it.


PS


RVLinear.pas (included in the registered version, or can be downloded:

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

RichEdit-like selection coordinates - SelStart and SelLength.



> Hi there,

>

> This seems a bit complicated. GetSelectionBounds also seems rather

> difficult to work with. Could you explain what RVData.Format_ does, and

> why it has the underscore at the end? The Help file doesn't mention

> TCustomRVData.Format_. I'm used to being able to get and set SelStart

> and SelLength, and I'm struggling a bit to figure out how to do simple

> operations like this in RichViewEdit.

>

> (This is not a criticism; I realize the approach of RichView is

> different from TRichEdit, and that's why I want to use it. I'm just a

> bit thick!)





Powered by ABC Amber Outlook Express Converter