WoW:API Frame StartMoving: Difference between revisions
Jump to navigation
Jump to search
StartMoving -Documentation by AeroBrain-
No edit summary |
({{widgetmethod}}) |
||
| Line 1: | Line 1: | ||
{{widgetmethod}} | |||
<center>'''StartMoving''' ''-Documentation by [[User:AeroBrain|AeroBrain]]-''</center> | <center>'''StartMoving''' ''-Documentation by [[User:AeroBrain|AeroBrain]]-''</center> | ||
| Line 28: | Line 30: | ||
: Use this with the [[API RegisterForDrag|RegisterForDrag()]] function to allow your frame-based object to be moved by the user. | : Use this with the [[API RegisterForDrag|RegisterForDrag()]] function to allow your frame-based object to be moved by the user. | ||
: Use the [[API StopMovingOrResizing|StopMovingOrResizing()]] function inside the <OnDragStop>...</OnDragStop> XML section to stop the moving process. | : Use the [[API StopMovingOrResizing|StopMovingOrResizing()]] function inside the <OnDragStop>...</OnDragStop> XML section to stop the moving process. | ||
Revision as of 12:00, 10 June 2006
← 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 StopMovingOrResizing() function inside the <OnDragStop>...</OnDragStop> XML section to stop the moving process.