[fixed]Bug with GUI Tool tip text

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.

[fixed]Bug with GUI Tool tip text

Postby Reiko » Fri Jun 10, 2011 11:56 pm

When you use multiple lines in tool tip text, it seems to be underestimating what the width of the box should be.

Example:
Code: Select all
guienv->addComboBox(rect<s32>(20,20,120,40))->setToolTipText(L"In windowed mode, the resolution will not be\nlarger than the desktop resolution.");

Result:
Image

Adding a few spaces before the new line will fix it. But still, it should work without that.
Code: Select all
guienv->addComboBox(rect<s32>(20,20,120,40))->setToolTipText(L"In windowed mode, the resolution will not be  \nlarger than the desktop resolution.");

Image

Font used: http://www.mediafire.com/?rivmzrikzk12p5w

Using Irrlicht svn rev 3767
Reiko
 
Posts: 105
Joined: Sun Aug 16, 2009 7:06 am
Location: Australia

Postby CuteAlien » Sat Jun 11, 2011 9:25 am

Thanks, this seems to be an even more general problem in textbreaking in the statictext element. I'll look into it.
IRC: #irrlicht on irc.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5359
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Postby CuteAlien » Mon Jun 13, 2011 4:38 pm

Turned out to be 2 bugs. Wrapping used the wrong size and additionally the last word was handled wrong. Is fixed now in svn release branch 1.7 r3847 and will probably be in svn trunk soon.
IRC: #irrlicht on irc.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5359
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Postby Reiko » Mon Jun 13, 2011 5:48 pm

Nice to hear its sorted then.

Cheers.
Reiko
 
Posts: 105
Joined: Sun Aug 16, 2009 7:06 am
Location: Australia


Return to Bug reports

Who is online

Users browsing this forum: No registered users and 1 guest