613-518-1166 info@zimdatabases.com

ZIM Language Reference

WINDOW SET CURSOR

< All Topics

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.

 

See Also

$CursorCol

$CursorRow

$CursorScreenCol

$CursorScreenRow

CURSOR

ThisWindow

WINDOW SET CURRENT

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Table of Contents