TitleRegion - Movable Frame on TitleFrame only
Issue: Cant seem to get TitleRegion to work. Making Frame movable via Title Frame only
Method: XML: Using Template Frames. lua on the event of OnMouseDown/OnMouseUp. I can get the whole frame to drag around by doing the OnMouseDown/OnMouseUp events if i place it in my root <Frame />, Which is fine except i dont want it to drag the frame unless im clicking on the title frame Im wandering, can i set the OnMouseDown/OnMouseUp events in the TitleFrame template in order to accomplish what im after? or does that not work?. code: Main Frame (Called Via CreateFrame()) iTrackerFrameTemplate.xml Code:
Code:
<Ui> iTrackerFrameTemplate.lua Code:
function iTrackerFrame_TitleFrameTemplate_OnLoad_SetWidth(Frame) you can just set that to "TITLE OF FRAME" if you want. |
More like:
Lua Code:
Lua Code:
The width of the body will size with the header and its height can be set independently so the function name is now a bit misleading, more like TrackerFrame_BodyFrameTemplate_OnLoad_SetHeight. Edited: so the background insets and anchors don't overlay and darken the text. |
Thanks :)
First off, Thanks for replying :)
THANK you so much. I was a little confused as to the whole width height thing, but once i pasted your code in and gave it a test i figured out what was going on.. Thank you again. ^_^ |
All times are GMT -6. The time now is 03:23 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI