RectControl.MouseCursor

From Xojo Documentation

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

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

Supported for all project types and targets.

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

Notes

If the Application class's MouseCursor property is not Nil or the Window'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 Open event of the control sets the default cursor to the finger pointer.

Me.MouseCursor = System.Cursors.FingerPointer

See Also

System.Cursors, Cursors