Description: This statement sets the mouse cursor type for the window.
Returns: Nothing
Usage: Script
Format: SetCursor(Type)
Parameters: Type { numeric } { required } { no default: }
Any numeric expression giving the cursor type to display as follows:
|
Type |
Cursor Type |
|
-1 |
Set the cursor to the parent window's cursor |
|
0 |
Normal Select (Standard arrow) |
|
1 |
Busy (Waiting hourglass) |
|
2 |
Text Select (Text I-beam) |
|
3 |
Precision Select (Crosshairs) |
|
4 |
Unavailable (Slashed circle) |
|
5 |
Move (Four-pointed arrow pointing north, south, east, and west) |
|
6 |
Diagonal Resize 2 (Double-pointed arrow pointing northeast and southwest) |
|
7 |
Vertical Resize (Double-pointed arrow pointing north and south) |
|
8 |
Diagonal Resize 1 (Double-pointed arrow pointing northwest and southeast) |
|
9 |
Horizontal Resize (Double-pointed arrow pointing west and east) |
|
10 |
Alternate Select (Vertical arrow) |
|
11 |
Working in Background (Standard arrow and small hourglass) |
|
12 |
Help Select (Standard arrow and small hourglass) |
Comments: This statement will affect the cursor in the current window in which it is executed; the appearance of the cursor will depend on the current Windows™ cursor settings. The changed cursor will only be displayed within the client area of the window. Changing the cursor for a window will change the cursor for its child windows unless the child windows use SetCursor to change their cursor.
Example:
If editFlag EditText;
[
SetCursor(2);
]
This is a script that might be executed prior to opening an editor window, for which an Text Select style cursor is desired.