I hope word wrap cutting off words

l241002209l

12-06-2010 08:24:25

hi,everyone
viewtopic.php?f=17&t=11074&p=64351&hilit=wrap#p64351
In the above address,he ask for word wrap cutting off words.I have the opposite.I want word wrap cutting off words,How should I do? Thanks.

Altren

13-06-2010 13:45:55

I don't understand what do you actually want. Cutting words in word wrap mode was a bug that was fixed long long time ago.

l241002209l

13-06-2010 15:18:41

I don't understand what do you actually want. Cutting words in word wrap mode was a bug that was fixed long long time ago.

I need that bug,Is there any way to solve this problem? I hope Cutting words in word wrap mode

Altren

13-06-2010 17:14:33

And how it could be done? Word wrap is when any word that can't fit into current line goes to next. If you don't need it be on next line just turn off word wrap. If you need new line after that word - use '\n'.

l241002209l

16-06-2010 14:59:19

And how it could be done? Word wrap is when any word that can't fit into current line goes to next. If you don't need it be on next line just turn off word wrap. If you need new line after that word - use '\n'.
I know what you mean. I hope that word wrap is when any letter(not word) that can't fit into current line goes to next.
Maybe this is not possible in the present version.I hope the next version will have new interface,this feature can be achieved.Wrap the unit with the letter.

Altren

16-06-2010 16:23:59

Now I got it. You said about cutting off words and that bug was actually hiding part of word. You could've said about letters wrap earlier ;)

Well, I know how to do it (and break original word wrap) - in MyGUI_TextView.h replace
if (FontCodeType::Space == character)
{unctionality
roll_back.set(line_info.simbols.size(), index, count, width);
}
else if (FontCodeType::Tab == character)
{
roll_back.set(line_info.simbols.size(), index, count, width);
}

with roll_back.set(line_info.simbols.size(), index, count, width);I don't really see how this might be useful, if you'll explain we might add this functionality.

l241002209l

17-06-2010 13:41:46

Now I got it. You said about cutting off words and that bug was actually hiding part of word. You could've said about letters wrap earlier ;)

Well, I know how to do it (and break original word wrap) - in MyGUI_TextView.h replace
if (FontCodeType::Space == character)
{unctionality
roll_back.set(line_info.simbols.size(), index, count, width);
}
else if (FontCodeType::Tab == character)
{
roll_back.set(line_info.simbols.size(), index, count, width);
}

with roll_back.set(line_info.simbols.size(), index, count, width);I don't really see how this might be useful, if you'll explain we might add this functionality.


I done it with your way,Thank you for your patience in helping me.
The reason for it:
Chinese characters like this:"你好,谢谢你的帮助",so i need letter wrap.