Widget API: Frame:StartMoving

From AddOn Studio
Revision as of 04:23, 2 December 2007 by WoWWiki>Pcj
Jump to navigation Jump to search

Widget API ← Frame < StartMoving

Moves the frame-based object in relation to where the mouse is being moved.

obj:StartMoving();

Arguments
nil

Returns
nil

Example
myAddonFrame:StartMoving();
Result
The frame named 'myAddonFrame' would start to move in relation to where the mouse is being moved.

Description
Moves the frame-based object in relation to where the mouse is being moved.
Use this with the RegisterForDrag() function to allow your frame-based object to be moved by the user.
Use the StopMovingOrSizing() function inside the <OnDragStop>...</OnDragStop> XML section to stop the moving process.