WoW:API Frame StartMoving: Difference between revisions
Jump to navigation
Jump to search
m (fixed a typo for StopMovingOrSizing link) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{widgetmethod}} | {{widgetmethod}} | ||
Moves the frame-based object in relation to where the mouse is being moved. | Moves the frame-based object in relation to where the mouse is being moved. |
Revision as of 04:23, 2 December 2007
← 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.