[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.
Post Reply
Reiko
Posts: 105
Joined: Sun Aug 16, 2009 7:06 am
Location: Australia

[fixed]Bug with GUI Tool tip text

Post by Reiko »

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
CuteAlien
Admin
Posts: 9809
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

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.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
CuteAlien
Admin
Posts: 9809
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

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.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Reiko
Posts: 105
Joined: Sun Aug 16, 2009 7:06 am
Location: Australia

Post by Reiko »

Nice to hear its sorted then.

Cheers.
Post Reply