line breaks
Moderators: CEGUI MVP, CEGUI Team
line breaks
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?
Re: line breaks
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!
Re: line breaks
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.
Who is online
Users browsing this forum: No registered users and 3 guests