Page 1 of 1

How to make a tooltip?

Posted: Wed May 06, 2009 19:00
by tedlin01
Hello!
I have now been trying to make a tooltip but failed.

I have tried:

// Create tooltip
CEGUI::Tooltip * pTooltip = new CEGUI::Tooltip("TaharezLook/Tooltip", "CPHORA");
pTooltip->setDisplayTime( 5.0f );
pTooltip->setHoverTime( 1.0f );
pTooltip->setTooltipText("HEJ DIN FITTA");
pTooltip->setAlwaysOnTop( true );

// Add tooltip to my button
pbtn->setTooltip( pTooltip )
.. didn't work.

I have also tried
pbtn->setProperity("Tooltip", "TEXT");
.. didnt work.

I am using injectTimePulse as it's supposed to be used. What else is missing?
Please help me asap!

Re: How to make a tooltip?

Posted: Wed May 06, 2009 19:25
by tedlin01
by using pbtn->setTooltipText("this is tooltip");
i managed to atleast get a stack overflow crash :P
Is there anyway I can get pass this or is it impossible to use the tooltipsystem in 0.6.2?

Re: How to make a tooltip?

Posted: Wed May 06, 2009 20:30
by Jamarr

Re: How to make a tooltip?

Posted: Thu May 07, 2009 22:14
by tedlin01
yeah... I have tried that tutorial..

Re: How to make a tooltip?

Posted: Fri May 08, 2009 15:23
by scriptkid
Okay, and you also called 'setDefaultTooltip()'?

Re: How to make a tooltip?

Posted: Sun May 31, 2009 14:42
by maori
heya

there is or was a recursive event issue

viewtopic.php?f=10&t=3796

dont know the status of it though but i guess its fixed and need to wait for the next release ?

Re: How to make a tooltip?

Posted: Sun May 31, 2009 19:27
by CrazyEddie
maori wrote:dont know the status of it though but i guess its fixed and need to wait for the next release ?

This is pretty much the situation. Though I'm somewhat reluctant to do a 0.6.3 release, since I really wanted 0.7.0 to be next - but that's taking forever to get done :(

CE.