WoW:Making Draggable Frames: Difference between revisions

m
→‎Parent Dragging: Updated - We now have the SetMovable widget function
No edit summary
m (→‎Parent Dragging: Updated - We now have the SetMovable widget function)
Line 54: Line 54:
== Parent Dragging ==
== Parent Dragging ==


Some advanced dragging addons use overlays that make default blizzard frames draggable.  This is possible by using GetParent when starting and stopping drag. Unfortunetly this means that the parent frame must already
Some advanced dragging addons use overlays that make default Blizzard frames draggable.  This is possible by using GetParent when starting and stopping drag. To do this, one must make the parent frame movable through the use of the SetMovable widget function, i.e. <tt>''frame'':SetMovable(true)</tt>One drawback with overlay frames that are mouse enabled is that they will prevent the parent frame's click script tags from being called so you often have to simulate their click events.
be movable="true". (In the upcomming patch you will be able to use SetMovable(1) to modify a frames' movable tag.) Another drawback with overlay frames that are mouse enabled is that they will prevent the parent frame's click script tags from being called so you often have to simulate their click events.


== Quick Dragging Code ==
== Quick Dragging Code ==
Anonymous user