Page 1 of 1

Tooltips not showing up

Posted: Wed May 23, 2007 13:35
by daves
I'm trying to figure out the minimum that I have to do to have tooltips associated with my cegui widgets.

I've done the following and nothing works.

I call CEGUI::System::setDefaultToolTip("WindowsLook/Tooltip");
I set the tooltip text on my widget:

e.g. btn->setToolTipText("Hi");

When this didnt work I then associated the default tooltip with the button

btn->setTooltip(CEGUI::System::getSingleton().getDefaultTooltip());

What am I missing?

I'm using 0.5 btw.

Posted: Wed May 23, 2007 14:03
by scriptkid
Hi,

this link might mention something you have forgotten, such as injecting time maybe?

http://www.cegui.org.uk/wiki/index.php/Tooltips

HTH.

Posted: Wed May 23, 2007 14:05
by Kuehrli
I am using

Code: Select all

   btn->setTooltipText("Test");
   btn->setTooltipType("WindowsLook/Tooltip");

without anything else (like setDefaultTooltip) and it works fine.

Posted: Wed May 23, 2007 14:35
by Rackle
May not be injecting time pulses (just like keyboard and mouse events).

Posted: Wed May 23, 2007 16:17
by daves
ah.. never even knew about "injecting time" but that certainly makes sense given the nature of a tooltip... will try that.