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

DragDrop.GetMouseX

Queries the native mouse position where the item was dropped.

Component Version macOS Windows Linux Server iOS SDK
DragDrop 2.4 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "DragDrop.GetMouseX"; droparea )   More

Parameters

Parameter Description Example
droparea The reference ID for this drop area. Use functions like DragDrop.CreateWithControl to create a drop area. $dropHandle

Result

Returns the mouse x coordinate.

Description

Queries the native mouse position where the item was dropped.
Call this function in the drag action script. The mouse position is relative to the window.
Added Windows support for MBS Plugin 8.1.

Examples

Queries Mouse X and Y coordinates:

MBS( "DragDrop.GetMouseX"; $droparea ) & " / " & MBS( "DragDrop.GetMouseY"; $droparea )

See also

This function is free to use.

Created 18th August 2014, last changed 5th February 2018


DragDrop.GetLeft - DragDrop.GetMouseY