WoW:UIHANDLER OnReceiveDrag: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (catfix, Replaced: {{widgethandler}} → {{widgethandler}}<br>)
m (Move page script moved page UIHANDLER OnReceiveDrag to UIHANDLER OnReceiveDrag without leaving a redirect)
 
(No difference)

Latest revision as of 04:49, 15 August 2023

Widget handlers < OnReceiveDrag

Description[edit]

The OnReceiveDrag handler is called when the user has dragged an icon with the pointer and dropped it on this frame.

Arguments[edit]

None.

Note[edit]

OnReceiveDrag doesn't tell you anything about what the user dropped on the frame, but you can use GetCursorInfo() to find out whether it was an item, spell, macro, or amount of money, and the specifics thereof. This works because there is still an icon on the cursor when this handler is called; the API doesn't automatically clear the cursor for you. Use ClearCursor() or the like if you want the icon to go away after the user drops it in your frame.