How can I make the CEGUI::StaticText multiline

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

finezwx
Just popping in
Just popping in
Posts: 13
Joined: Fri May 23, 2008 02:20

How can I make the CEGUI::StaticText multiline

Postby finezwx » Fri Aug 08, 2008 15:30

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

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Postby Jamarr » Fri Aug 08, 2008 16:23

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.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Fri Aug 08, 2008 18:07

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

finezwx
Just popping in
Just popping in
Posts: 13
Joined: Fri May 23, 2008 02:20

Postby finezwx » Sat Aug 09, 2008 01:47

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?


Return to “Help”

Who is online

Users browsing this forum: Baidu [Spider] and 23 guests