View Single Post
01-13-15, 11:16 PM   #8
Malsomnus
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Apr 2013
Posts: 203
Originally Posted by Phanx View Post
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!
  Reply With Quote