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).
Retired author of
too many addons
Message me if you're interested in taking over one of my addons.
message me about addon bugs or programming questions.
View Public Profile
Send a private message to Phanx
Find More Posts by Phanx