Status of tooltips?

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
CombatWombat
Just popping in
Just popping in
Posts: 4
Joined: Wed Jan 12, 2005 12:06

Status of tooltips?

Postby CombatWombat » Tue Jul 05, 2005 01:53

Hi, I note that there seems to be some code in CEGUI to support tooltips.

I've tried placing a tooltip window within a button window with various options in the layout file. Search results haven't turned up anything definitive on this matter.

I note that spannerman's Ogre particle editor implements the tooltips through static text items, but I'd prefer not to reinvent or copy and paste the wheel if this functionality exists in CEGUI :)

Can anyone point me toward some XML or C++ which uses the CEGUITooltip element?

Thanks for any light you can shed on this one!

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

Re: Status of tooltips?

Postby CrazyEddie » Tue Jul 05, 2005 07:42

Hi,

Tooltip usage is somewhat different to all other windows. Basic usage is very simple though, so without getting into anything too advanced, what you do is this:

First, use set the default tooltip type in the system singleton:

Code: Select all

System::getSingleton().setTooltip("TaharezLook/Tooltip");


Now set the tooltip text on your windows:

Code: Select all

myButton->setTooltipText("Format the hard disk!");


There are options to affect timing and the fade effect, and also more advanced possibilities for per-window custom tooltip windows, but the above is what most people will be using.

Note that you need to ensure that you're injecting time pulses via System::injectTimePulse, since the tooltips rely on this for timing purposes.

HTH

CE.

User avatar
CombatWombat
Just popping in
Just popping in
Posts: 4
Joined: Wed Jan 12, 2005 12:06

Re: Status of tooltips?

Postby CombatWombat » Tue Jul 05, 2005 09:13

Awesome, thanks - just what I was after :)

Ken
Just popping in
Just popping in
Posts: 4
Joined: Tue Jun 27, 2006 06:11
Location: ShangHai China

Postby Ken » Tue Jun 27, 2006 08:37

but how to use System::injectTimePulse?


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 6 guests