The Cursor object provides control over movement on an "invisible" cursor, that allows you to test or select parts of text and tags without moving the visible insertion point.
The Cursor object is available in Ted and - during text editing - also in Fred.
Methods
IsBefore Method | Returns true if the cursor position is before the position of objCursor (another Cursor object). |
IsEqual Method | Returns true if the cursor position is equal to the position of objCursor (another Cursor object) . |
Mode Method | Returns an integer specifying the cursor editing mode. |
Move Method | Moves the cursor of the specified number of positions to the right or left. |
MoveWord Method | Moves the cursor of the specified number of words - right or left. |
To create a Cursor object:
dim objCur as Cursor = Text.GetCursor(modeSrcOn,cposCursor,false)
See also
Overview
Example
TxtPosDesc object