System.Cursors

From Xojo Documentation

Revision as of 16:01, 23 February 2022 by Gperlman (talk | contribs) (Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Read-Only Property (As MouseCursor )
MouseCursorValue = aSystem.Cursors

Supported on Desktop.

Provides access to the cursors in the Cursors module.

Notes

Use these cursors to change the current mouse pointer to any of the standard cursor shapes.

fa-info-circle-32.png
Cursors is only supported for Desktop projects.

Example

The following line in the MouseDown event of a Canvas changes the cursor to the HandClosed cursor. Returning True allows the MouseUp event to be called.

Me.MouseCursor = System.Cursors.HandOpen
Return True

See Also

Cursors module; MouseCursor class.