-
Posted by Ularave on Tue, 23 Dec 2008 19:54:49
How exactly does one use TitleRegion? I haven't been able to find any good documentation as to its uses. An example would be extremely helpful.
-
Posted by Ularave on Tue, 23 Dec 2008 19:54:49
How exactly does one use TitleRegion? I haven't been able to find any good documentation as to its uses. An example would be extremely helpful.
-
Posted by jnwhiteh on Sun, 04 Jan 2009 16:00:14
TitleRegions are very sketchy and don't follow the same rules as most of the widgets that exist in WoW. Basically you can create a TitleRegion with a specific size and placement, and anytime the user clicks on that region and drags, the frame will be moved (if the frame is movable). It can save you a bit of code trying to make frames moveable, but that's a trivial exercise anyway.
You can see one example use here: http://wowcompares.com/3018634/FrameXML/FloatingChatFrame.xml
-
Posted by Ularave on Fri, 16 Jan 2009 16:22:52
so it has to be in between the frame, or button tags?
-
Posted by jnwhiteh on Fri, 16 Jan 2009 18:57:55
That depends entirely on what you want to be draggable. If you want the
Frame
to be draggable then put it within the frame. If you want aButton
to be draggable, then put it within the button. -
Posted by Ularave on Fri, 16 Jan 2009 19:53:48
yeah i figured that out, just makeing sure it went between one of those tags.