guides:programming:programmers_reference_manual:cursor_property_system

CURSOR property (System)

Specifies the default cursor image to be used for the application.

This property can be one of the following formats:

• A path and file name of a cursor (.CUR) file.

• A path and file name to a resource file (such as a DLL) containing the cursor image, along with its resource ID. The resource ID is separated from the file name by a “#” character.

e.g.

.\res\MyAppRes.Dll#192

.\res\MyAppRes.Dll#MYCURSOR

Note that if the cursor image is stored in a custom resource section (rather than the usual CURSOR section) the custom section name may specified by inserting it before the resource name like so:

.\res\MyAppRes.Dll#SOMESECTION#192

.\res\MyAppRes.Dll#SOMESECTION#MYCURSOR

• A symbol that specifies one of the standard Windows cursors. These are:

SymbolDescription
AArrow
HWait
II-Beam (for text entry)
CCross
VVertical (Up) Arrow
&Hand
SApp Starting
?Help
NNo
+Size All
\Size NWSE
/Size NESW
-Size WE
|Size NS
DDragMove
DCDragCopy
DevelopmentRuntimeIndexedScaledSynthetic
N/AGet/SetNoNoNo

This property used in response to the windows WM_SETCURSOR message to set the cursor shape when the cursor is over an application control or window. It can be overridden by setting the CURSOR property of an individual control or window.

Common GUI CURSOR property, SYSTEM CURSOR method

  • guides/programming/programmers_reference_manual/cursor_property_system.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1