How to make a tooltip?
Posted: Wed May 06, 2009 19:00
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!
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!