Page 1 of 1

How can I make the CEGUI::StaticText multiline

Posted: Fri Aug 08, 2008 15:30
by finezwx
I has set the value of the "HorzFormatting" property to "WordWrapLeftAligned"
But the StaticText show only one line too.

And I see the "TextDemo" in the CEGUI, it sets the same value to "HorzFormatting" property. but it show multiline.

How can I make the CEGUI::StaticText multiline

Posted: Fri Aug 08, 2008 16:23
by Jamarr
I can also verify that this property is indeed working correctly. If you set "HorzFormatting" to "WordWrapLeftAligned" it does indeed wrap the text. I can only assume that you are doing something weird, as you've provided very little details.

Posted: Fri Aug 08, 2008 18:07
by CrazyEddie
One thing to consider is that if you're using a language that uses some character other than ASCII 32 (0x20) for space, this will interfere with the word-wrapping (and yes, we really should fix this!).

CE

Posted: Sat Aug 09, 2008 01:47
by finezwx
I have downloaded CELayoutEditor and try the same.
But the StaticText only shows one line in the CELayoutEditor.

Now I must have set the StaticText multiline. How can I do?