Thread Tools Display Modes
08-21-13, 04:55 PM   #1
Xionyus
A Deviate Faerie Dragon
Join Date: Jan 2013
Posts: 13
Change EditBox Height?

I'm currently using Prat, I like it a lot more than Chatter. One thing that is bothering me though (I have pixel perfect OCD), is that I cannot change the height of the EditBox with Prat. I've tried adding this snippet into some addons that I'm not planning on updating:

EditBox:SetHeight(20)

and

EditBox:SetSize(397, 20)

I didn't put those in at the same time, either. I tried them separately.

I took those snippets from here. They don't work. I've closed out the game, reloaded and nothing. I'm aware you can change the EditBox to free floating and move it around and change the width there, but unless I'm doing something wrong, I cannot seem to change the height. Is there anything I can do?
  Reply With Quote
08-21-13, 05:08 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Well, for one, the global name of the chat edit box is ChatFrame1EditBox, not just EditBox. Aside from that, SetHeight works just fine, but you also need to update the height of the textures attached to the editbox:

Code:
ChatFrame1EditBox:SetHeight(20)

ChatFrame1EditBoxLeft:SetSize(20, 20)
ChatFrame1EditBoxRight:SetSize(20, 20)
ChatFrame1EditBoxMid:SetHeight(20)

ChatFrame1EditBoxFocusLeft:SetSize(20, 20)
ChatFrame1EditBoxFocusRight:SetSize(20, 20)
ChatFrame1EditBoxFocusMid:SetHeight(20)

ChatFrame1EditBoxLanguage:SetSize(20, 20)
Also, sticking code like this is an unrelated addon is not a very good idea. Just copy and paste it into the page to turn it into its own addon:

http://addon.bool.no/
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Change EditBox Height?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off