setFormatting(StaticText::HorzFormatting::WordWrapLeftAligned ,StaticText::VertFormatting::TopAligned);
but just working fine at Latin character string,can't auto wrap in chinese character string.
what warning?
Moderators: CEGUI MVP, CEGUI Team
setFormatting(StaticText::HorzFormatting::WordWrapLeftAligned ,StaticText::VertFormatting::TopAligned);
Code: Select all
setFormatting(StaticText::WordWrapLeftAligned ,StaticText::TopAligned);
msgbox = (StaticText *) WindowManager::getSingleton().createWindow((utf8*)"WindowsLook/StaticText", (utf8*)"message_msgbox" ) ;
panel->addChildWindow(msgbox);
msgbox->setPosition(Point(0.1,0.1));
msgbox->setSize(Size(0.8,0.6));
msgbox->setFont(gfont);
msgbox->setFrameEnabled(false);
msgbox->setBackgroundEnabled(false);
msgbox->setFormatting(StaticText::WordWrapLeftAligned ,StaticText::TopAligned);
msgbox->setText((utf8*)"Crazy Eddie's GUI System is a free library providing windowing and widgets" ) ;
msgbox->setText((utf8*)"你说你是我的传说,让他天长地久,我不知道怎么说了~" ) ; //chinese character string
Return to “Modifications / Integrations / Customisations”
Users browsing this forum: No registered users and 3 guests