-
Posted by Spamurai on Sun, 01 Nov 2009 17:12:39
I'm trying to set a nil value for SetBackdrop for the ChatFrameEditBox in order to remove the default frame around the edit box when you press enter to type something. I've got a .toc loading a .lua with the following:
ChatFrameEditBox:SetBackdrop(nil)
ChatFrameEditBox:SetBackdropColor(0, 0, 0, 0)
Any help would be appreciated, and thanks in advance!
-
Posted by jnwhiteh on Tue, 03 Nov 2009 10:48:20
ChatFrameEditBox:SetBackdrop(nil) should do it.
-
Posted by Spamurai on Wed, 04 Nov 2009 00:37:55
I had tried that previously too. I figured out that the problem is that I'm trying to change the editbox before it is created. Basically, I need to find a way to make it change the editbox every time I press enter to bring it up.
Can I use an OnEvent handler for this? And if so, do you happen to know the event for it?
-
Posted by jnwhiteh on Wed, 04 Nov 2009 13:14:14
You might be able to use the OnEditFocusGained script.
-
Posted by Spamurai on Thu, 05 Nov 2009 19:09:35
I'll see if I can't figure out a way to do it using that script, thanks for the help!