TCustomRichViewEdit.OnCaretMove

<< Click to display table of contents >>

TCustomRichViewEdit.OnCaretMove

Occurs when the caret is moved to the another position within the document

property OnCaretMove: TNotifyEvent;

(introduced in version 1.5)

Warning: This event may occur when document is not completely formatted! Do not use any methods relying on formatting inside this event, including methods working with selection (for example, do not use SelectionExists here). If you need to update user interface reflecting selection, use OnSelect.

 

In this event, you can use the following:

CurItemNo property;

OffsetInCurItem property;

GetCurrentLineCol method.