MultiLineEditbox::formatText question
Posted: Fri Nov 28, 2008 07:25
hi all , it's my first question topic.
^^ cegui is very cool and i like it very much.
those days i have a problem about the function
[bMultiLineEditbox::formatText
if the key ' '(space)is the first word , there must be a new line like the effect '\n' and the codes i fond is
"
// get cp / char count of next token
size_t nextTokenSize = getNextTokenLength(paraText, lineIndex + lineLen);
// get pixel width of the token
float tokenExtent = fnt->getTextExtent(paraText.substr(lineIndex + lineLen, nextTokenSize));
"
so my question is why we use the wrap TextUtils::DefaultWrapDelimiters(" \n\t\r") to split the text?
thank for your time[/b]
^^ cegui is very cool and i like it very much.
those days i have a problem about the function
[bMultiLineEditbox::formatText
if the key ' '(space)is the first word , there must be a new line like the effect '\n' and the codes i fond is
"
// get cp / char count of next token
size_t nextTokenSize = getNextTokenLength(paraText, lineIndex + lineLen);
// get pixel width of the token
float tokenExtent = fnt->getTextExtent(paraText.substr(lineIndex + lineLen, nextTokenSize));
"
so my question is why we use the wrap TextUtils::DefaultWrapDelimiters(" \n\t\r") to split the text?
thank for your time[/b]