Tooltips that wont disappear!?

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
malachy1681
Just popping in
Just popping in
Posts: 19
Joined: Thu Sep 01, 2005 05:29
Contact:

Tooltips that wont disappear!?

Postby malachy1681 » Sat Sep 03, 2005 16:20

Okay, I've used the following line to set the global tooltip widget:

Code: Select all

CEGUI::System::getSingleton().setTooltip ( "QMXGUI/Tooltip" );


But now I get empty tooltips popping up on everything that doesn't even have 'TooltipText' assigned. I also take it I have to do something to have the tooltip disappear after the mouse leaves the widget?

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

Re: Tooltips that wont disappear!?

Postby CrazyEddie » Sun Sep 04, 2005 13:16

This happens when the underlying renderer does not do alpha blending (as is the case for Irrlicht). It's a bit of a bug and I'll fix it before 0.4.0 is released.

User avatar
malachy1681
Just popping in
Just popping in
Posts: 19
Joined: Thu Sep 01, 2005 05:29
Contact:

Re: Tooltips that wont disappear!?

Postby malachy1681 » Sun Sep 04, 2005 13:23

Okay, will I'm using OGRE, which I thought did support alpha blending. I did get around it by not defining a global tooltip and just created a tooltip object and then associated it with the widget I wanted, but is there a way to get it to follow the mouse and then disappear when the cursor leaves the widget?

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

Re: Tooltips that wont disappear!?

Postby CrazyEddie » Mon Sep 05, 2005 08:28

Yeah, tooltips in Ogre should work fine - it's one of the platforms I test on regularly and I've noticed no strangeness. I assume you're correctly injecting time pulses?

To get the tooltip to follow the cursor within a window, you have to basically subscribe the EventMouseMove for the desired window(s), and then in the handler do something like this:

Code: Select all

Tooltip* tt = theWindow->getTooltip();

if (tt)
    tt->positionSelf();


You'll need a recent CVS (v0-4 branch) version for this to work, as the positionSelf method has only recently been made public.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 3 guests