Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MouseCursor.Set

Sets the mouse cursor.

Component Version macOS Windows Linux Server iOS SDK
Utility 2.6 ✅ Yes ✅ Yes ❌ No ✅ Yes, on macOS and Windows ❌ No
MBS( "MouseCursor.Set"; CursorName )   More

Parameters

Parameter Description Example
CursorName The name of cursor you'd like to set. "openHand"

Result

Returns "OK" or error message.

Description

Sets the mouse cursor.
As FileMaker loves to reset the cursor, you can't use it only in places where FileMaker does not reset it. Like in a script without pauses.

Cursor names allowed on macOS:
  • arrow
  • IBeam
  • pointingHand
  • closedHand
  • openHand
  • resizeLeft
  • resizeRight
  • resizeLeftRight
  • resizeUp
  • resizeDown
  • resizeUpDown
  • crosshair
  • disappearingItem

With macOS 10.6 and newer you can also use this cursors:
  • operationNotAllowed
  • dragLink
  • dragCopy
  • contextualMenu

Cursor names allowed on Windows:
  • AppStarting
  • Arrow
  • IBeam
  • Hand
  • OpenHand
  • resizeLeftRight
  • resizeUpDown
  • crosshair
  • operationNotAllowed
  • Help
  • SizeNESW
  • SizeNS
  • SizeNWSE
  • SizeWE
  • SizeAll
  • UpArrow
  • Wait

Examples

Set hand cursor:

MBS( "MouseCursor.Set"; "openHand" )

Set crosshair cursor:

MBS( "MouseCursor.Set"; "crosshair" )

See also

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 10th August 2020


MouseCursor.HideUntilMouseMoves - MouseCursor.Show