Tooltip not showing

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Sachin
Just popping in
Just popping in
Posts: 20
Joined: Wed Jul 06, 2005 09:42

Tooltip not showing

Postby Sachin » Wed Jul 20, 2005 06:49

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? 8)

User avatar
Sachin
Just popping in
Just popping in
Posts: 20
Joined: Wed Jul 06, 2005 09:42

Re: Tooltip not showing

Postby Sachin » Wed Jul 20, 2005 07:21

Ok i got the solution.i missed this

Tooltip* tt = (Tooltip*)WindowManager::getSingleton().createWindow((utf8*)"TaharezLook/Tooltip", (utf8*)windowName );
btn->setTooltip(tt);

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Tooltip not showing

Postby CrazyEddie » Wed Jul 20, 2005 08:44

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:

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.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 8 guests