Cursor Object

Build 1501 on 14/Nov/2017  This topic last edited on: 8/Jan/2014, at 17:05

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

Desc Method Returns a TxtPosDesc object describing the text content at the cursor position.
Duplicate Method Returns a new Cursor object identical to the original one.
InTabulation Method Returns true if the cursor is inside a tabulation.
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.
MoveCell Method Moves of nOffset tabulation cells - up or down.
MoveWord Method Moves the cursor of the specified number of words - right or left.
TestTabulation Method Tests the cursor position against a table.

To create a Cursor object:

dim objCur as Cursor = Text.GetCursor(modeSrcOn,cposCursor,false)

See also

Overview

Example

TxtPosDesc object