well i want to show a tooltip on a button. I created the button & then used the following line.
btn->setTooltipText("asasas");
now using windows timer im executing the following line every 1 second
CEGUI::System::getSingleton().injectTimePulse(1);
but still no tooltip is showing wen i move the mouse onto the button.
Any Pointers?
Tooltip not showing
Moderators: CEGUI MVP, CEGUI Team
Re: Tooltip not showing
Ok i got the solution.i missed this
Tooltip* tt = (Tooltip*)WindowManager::getSingleton().createWindow((utf8*)"TaharezLook/Tooltip", (utf8*)windowName );
btn->setTooltip(tt);
Tooltip* tt = (Tooltip*)WindowManager::getSingleton().createWindow((utf8*)"TaharezLook/Tooltip", (utf8*)windowName );
btn->setTooltip(tt);
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Tooltip not showing
That's one way of doing it, though is not the way you want to be doing it for most 'normal' cases. What you probably really wanted was this:
This creates a 'shared' tool-tip which the system will use for all widgets. What you have done is perfectly valid, though is intended for cases where you want a particular widget to have a special custom tooltip.
Code: Select all
CEGUI::System::getSingleton().setTooltip("TaharezLook/Tooltip");
This creates a 'shared' tool-tip which the system will use for all widgets. What you have done is perfectly valid, though is intended for cases where you want a particular widget to have a special custom tooltip.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 5 guests