WINDOW SET CURSOR

WINDOW SET CURSOR

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

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.

 

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%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish