Originally Posted by Phanx
Yeah that is pretty WTF usage of an editbox...
Code:
local close = CreateFrame("Button", nil, self, "UIPanelCloseButton")
close:SetPoint("TOPRIGHT")
You don't even need any scripts since the template already comes with one; just make sure "self" is the frame to be closed when clicking.
|
This is a fine solution for a different problem
(That's what I ended up using, of course, but I really hate the way this button looks)
__________________
SanityCheck - If you've ever said the words "Sorry, I forgot" then you need this add-on.
Remember, every time you post a comment on an add-on, a kitten gets its wings!