Skip to content

Cursor - CursorShape

Sets the cursor to the passed cursor_type

Type: Property
Access: Write-Only
Data Type: Integer
Parameters: None

Syntax

Property Integer Cursor
Access Type Syntax
Write Access: Set Cursor to IntegerVariable/Value

Description

Most often, you will use the Cursor_Wait and Cursor_Ready methods to change the cursor to an hourglass and back to the normal cursor.

The Cursor property sets the cursor to the passed cursor_type.

If the property is set to zero, the cursor reverts to the original default cursor_type for the class stored in ClassCursorHandle.

Valid Cursor_Types:

Constant Meaning
IDC_ARROW Typical Windows arrow pointer
IDC_IBEAM Typical Windows edit pointer (I-beam)
IDC_WAIT Typical Windows wait pointer (hourglass)
IDC_CROSS Typical Windows paint pointer (crosshairs)
IDC_UPARROW Up-arrow pointer
IDC_ICON Null cursor (obsolete: use IDC_ARROW)
IDC_SIZE A rectangle with a smaller rectangle in the lower right corner (obsolete: use IDC_SIZEALL)
IDC_SIZENWSE Diagonal resizing cursor lower-right-upper-left
IDC_SIZENESW Diagonal resizing cursor lower-left-upper-right
IDC_SIZEWE Horizontal resizing cursor
IDC_SIZENS Vertical resizing cursor
IDC_SIZEALL Four-pointed arrow pointing north, south, east, and west
IDC_NO Slashed circle
IDC_APPSTARTING Standard arrow and small hourglass
IDC_HAND Hand
IDC_HELP Arrow and question mark