tooltips

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

lali
Just popping in
Just popping in
Posts: 6
Joined: Mon May 26, 2008 20:48

tooltips

Postby lali » Fri Jul 03, 2009 11:43

I am using CEGUI with Ogre and I want to use the CEGUI tooltip using WindowsLook/Tooltip on my ogre entities. When th emouse is on an entity, I create a tooltip :

Code: Select all

win = (CEGUI::Tooltip *)CEGUI::WindowManager::getSingleton().createWindow("WindowsLook/Tooltip", "Tooltip");
win->setText("This is a test");
win->setFadeTime(1.0);
win->setHoverTime(4.0);
win->setFont("myfont");
win->setAlwaysOnTop(true);
win->sizeSelf();
win->positionSelf();

But I don't see anything showing up and there are no errors in the log.
I have tooltips working well on CEGUI entities but I would like to extend that to Ogre objects.

Thanks,

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

Re: tooltips

Postby CrazyEddie » Sat Jul 04, 2009 20:26

The Tooltip is somewhat specialised in that it really needs a 'target window' and is wired to that as far as notifications go which is what makes it work (mouse enters, mouse leaves, this type of stuff) - while there are likely a couple of nasty hacks you could pull off to get it to work, it may be a better design to use another window type and just emulate the tooltip look and behaviour.

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 17 guests