I read the code again ,
if i use setWordWrapping(false), the new line only do;t create until a '\n' is given.
in fact if i edit the TextUtils::DefaultWrapDelimiters(" \n\t\r") to TextUtils::DefaultWrapDelimiters("") , my problem is over.
but the important thing i wanted to know is that why we use the " \n\t\r" to wrap the string, and when we discuss the issue, i get it.
there are some differents between our mode of text writen.
it's a interesting to me too.
MultiLineEditbox::formatText question
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
haihuojiming wrote:I read the code again ,
if i use setWordWrapping(false), the new line only do;t create until a '\n' is given.
in fact if i edit the TextUtils::DefaultWrapDelimiters(" \n\t\r") to TextUtils::DefaultWrapDelimiters("") , my problem is over.
but the important thing i wanted to know is that why we use the " \n\t\r" to wrap the string, and when we discuss the issue, i get it.
there are some differents between our mode of text writen.
it's a interesting to me too.
My bad! I assumed the CEGUI editbox fell back to letter-wrapping, but instead it just adds a horizontal scrollbar. I'm glad you figured out how to configure the editbox to do this.
CrazyEddie wrote:haihuojiming wrote:if i edit the TextUtils::DefaultWrapDelimiters(" \n\t\r") to TextUtils::DefaultWrapDelimiters("") , my problem is over.
Hmm. This is probably something that we should make user configurable.
This should definitely be a property or something.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 3 guests