Is it possible to Word Wrap a Button?

Kukanani

18-03-2011 14:46:06

Hello,

I am trying to display long strings on a Button. Is there a way to set a WordWrap attribute for a button so that the text will not be cut off at the ends? I already tried setting a "WordWrap" attribute in XML, but MyGUI doesn't recognize it.

If not, can anyone think of a good way to wrap the text myself? Maybe replace spaces with \n?

Altren

18-03-2011 15:59:46

I think you should do next thing: create EditBox as child of button, enable wordwrap and disable mouse input for it (NeedMouse false). And here you go - button with word wrap.