Wednesday, April 18, 2012

ChatFrameEditBox resizing

Hi,

I'm trying to change the character limit on the ChatFrameEditBox, however calling SetMaxLetters(500) doesnt let the box hold more than 255 characters, even though a subsequent GetMaxLetters() will return 500. I've had a look trhough the framexml code and couldnt see anything that might trim it back in an onchar event or similar.

I would also like to know if this is possible, wether Combat Lockdown restrictions apply to changing attributes of this editbox.

It would be appreciated if we could avoid the comments and replies about "255 is the max size of a message" and so on, that i have recieved when asking about this in other places.

Thanks,

Stewart|||No one at all?|||Well, setting the max letters to 10 works, so I'm assuming that there is something internal (not a part of LUA) that is ensuring that the chat text box does not go over 255 characters, probably to prevent spamming or channel abuse. So, to answer your question: No, it is not possible to add more than 255 letters to the ChatFrameEditBox object, even if using the EditBox methods to increase the size. If you create a different edit box, however, you can set the size to whatever you want and bypass this whole thing altogether :)

No comments:

Post a Comment