DesktopUIControl.MouseCursor

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As MouseCursor )
aDesktopUIControl.MouseCursor = newMouseCursorValue
or
MouseCursorValue = aDesktopUIControl.MouseCursor

New in 2021r3

Supported for all project types and targets.

The cursor to be displayed while the mouse is within the control and both the DesktopApplication and DesktopWindow class’s MouseCursor properties are Nil.

Notes

If the DesktopApplication class's MouseCursor property is not Nil or the DesktopWindow's MouseCursor property is not Nil, then any control's MouseCursor property is ignored. You can use a cursor stored in the Cursors module. On Macintosh, you can also obtain a MouseCursor from a resource file.

Example

This line in the Opening event of the control sets the default cursor to the finger pointer.

Me.MouseCursor = System.Cursors.FingerPointer

See Also

System.Cursors, Cursors