Page 1 of 1

Tooltips not working (Taharez)

Posted: Wed Mar 02, 2011 10:33
by blablub
Sorry for the many questions. But I'm really new to this and googling doesn't show up good results.

I wanted to test the Tooltips in an unmodified Taharez look. I have StaticText with a <Property Name="Tooltip" Value="Hooray" />. If I hover the staticText I should get the tooltip, right? But nothing happens. Do I have to enable tooltips at some other point? All the tutorials only tell me to add a Property with name "Tooltip".

Re: Tooltips not working (Taharez)

Posted: Wed Mar 02, 2011 10:37
by Kulik
Do you call System::injectTimePulse anywhere in your code?

Re: Tooltips not working (Taharez)

Posted: Wed Mar 02, 2011 12:02
by blablub
I'm only the GUI manager on XML level. ;) But doing a quick search in the sourcecode: No, it's never called.

Re: Tooltips not working (Taharez)

Posted: Wed Mar 02, 2011 12:59
by Kulik
System::injectTimePulse tells CEGUI how many seconds have passed. If you never call it, tooltips, animations and maybe other stuff won't work. Tell your coders to insert it and call it every frame with a delta.

Re: Tooltips not working (Taharez)

Posted: Fri Mar 04, 2011 12:29
by blablub
OK, we have now the injectTimePulse in the ogre FrameListener (like it's in your wiki), but the tooltips still don't show up. For testing I tried to put a tooltip on a StaticText if this is important.

Re: Tooltips not working (Taharez)

Posted: Fri Mar 04, 2011 12:45
by Kulik
I think you need to set the default tooltip or something...

See this article for more info. It's for 0.6 but most of it should apply to 0.7 http://www.cegui.org.uk/wiki/index.php/Tooltips

Re: Tooltips not working (Taharez)

Posted: Fri Mar 04, 2011 13:14
by blablub
Thank you. Now it's working. You guys give great support. :D