WINDOW SET CURSOR

Sets the location of the text cursor in the current window. Determines whether the cursor can move outside unprotected fields in the current window.

Syntax

WINDOW SET CURSOR option

Parameters

option

Option can be
row col
Where row and col are integers or expressions that evaluate to integers.
Row identifies the character row in which the text cursor is to be positioned; col identifies the character column in which the text cursor is to be positioned. Valid values are 1 through the maximum number of rows or columns within the current window's logical dimensions. Complex expressions must be enclosed in parentheses.
PROTECTED
Specifies that the text cursor must always be associated with an object in the window.
UNPROTECTED
Specifies that the text cursor can move anywhere within the window's presentation space. Applies to Zim Version 4 windows only.

Comments

To position the focus on an object in a window based on its location, you can use WINDOW SET CURSOR row col. The common means of placing the focus is FORM SET FOCUS where the object is identified explicitly.

 

Related Topics