View Single Post
05-06-18, 02:12 PM
Join Date: Mar 2006
Actually after looking at the grand total of 3 objects in the default UI that are resizable using this method, I think the (main) problem is that you need to specify a direction in which to resize the frame, like:
Loot history frame
Compact raid frame manager
If you want your frame to be resizable by any edge or corner, then you'll need to do some math to figure out
edge or corner to use based on the cursor location on mousedown.
The other option would be to add additional "drag handle" buttons on top of your frame, each sized and placed appropriately, and call "object:GetParent():StartSizing(point)" in
mousedown handlers. You can see that technique in use in my chat addon (written so long ago I'd forgotten about it initially) here:
You could make them invisible, or have them only appear when the shift button was pressed (by registering for the MODIFIER_STATE_CHANGED event on your frame).
Troubleshoot an addon
Turn any code into an addon
More addon resources
Need help with your code?
code! Attach or
Please don’t PM me
about addon bugs or code questions. Post a comment or forum thread instead!
View Public Profile
Send a private message to Phanx
Find More Posts by Phanx