Page 1 of 1

line breaks

Posted: Tue Oct 12, 2010 14:50
by rogerdv
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

Posted: Tue Oct 12, 2010 18:04
by Jamarr
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).

Re: line breaks

Posted: Wed Oct 13, 2010 19:33
by rogerdv
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.