I've got an addon that my brother and I use to better communicate with each other; thing is, there are a LOT of commands involved, and I'm trying to come up with a better way of accessing them. I came up with the idea of having some buttons which, when pressed, would change an EditBox to show what arguments went with which command. So, for example, you click the button labelled 'Example,' and the EditBox changes to say something like
/example accepts the following commands:
I know this could be done in the chat frame, but I don't really like outputting a lot of text to that, as some of these commands accept quite a lot of arguments, and outputting them all to the chat frame would result in a lot of spam.
Right now, I have two test buttons: One and Two. Button One changes my EditBox to have one line of text, while Button Two changes it to have several lines of text. The only problem is that the box itself does not expand to match the extra lines; it stays as a single line and the rest are printed underneath it. I've looked at several forum threads which say to anchor the EditBox, which I've done, yet it hasn't fixed the problem.
The help window is accessed via the AddOns tab under Interface Options; the code I have at the moment is here.
As far as I am aware, I've done everything right, so I don't understand why it isn't working properly. Any and all help is appreciated, but please bear in mind that my knowledge of Lua is pretty basic, so I might ask stupid questions..