line breaks

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

User avatar
rogerdv
Quite a regular
Quite a regular
Posts: 62
Joined: Thu Mar 31, 2005 23:21
Contact:

line breaks

Postby rogerdv » Tue Oct 12, 2010 14:50

I have made a quick search and seems that the way to inlcude line breaks is \n, but it doesnt works in my StaticText, it simply displays \n and the text is lost beyond the limits of the widget. DO{ I need to set some property for this to work?

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

Re: line breaks

Postby Jamarr » Tue Oct 12, 2010 18:04

What did you search for? You did not specify if you where setting text in xml or in code. If you are setting the text in xml you cannot use '\n' for line-breaks (afaik); you must use the actual line-break character to break lines (see: viewtopic.php?p=9662#p9662). If you are setting the text via code, then I think '\n' should work - if not, you can always insert using the character code (10).
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

User avatar
rogerdv
Quite a regular
Quite a regular
Posts: 62
Joined: Thu Mar 31, 2005 23:21
Contact:

Re: line breaks

Postby rogerdv » Wed Oct 13, 2010 19:33

Via code. And, if my memory doenst fails, it worked back in the age of CEGUI 0.6. I just noticed recently that my texts were not splitted.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 8 guests