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

koso
Just popping in
Just popping in
Posts: 4
Joined: Tue Sep 08, 2009 18:47

TOOLTIPS

Postby koso » Wed May 26, 2010 14:46

Is there any tutorial about using tooltips?
i have button and i want to set tooltip to it using setTooltip(). But at first i must create that tooltip using CEGUI::Tooltip *XY. and now, wich settings like size or text i must set to tooltip? any tutorial about it? or can somebody write tooltip creating code?

thanks

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

Re: TOOLTIPS

Postby CrazyEddie » Wed May 26, 2010 20:00

It's important to make a distinction between setting a Tooltip and setting the text to be used for a tooltip. While it's possible to set per-window tooltips (i.e. the tip window, not the text), this is generally not needed and is highly advanced. So...

Basically, you set the tooltip type window to use system wide. For example:

Code: Select all

CEGUI::System::getSingleton().setDefaultToolTip( "TaharezLook/Tooltip" );


Then you just set the string you want for each window via either Window::setTooltipText or via the Tooltip property. For example, in code:

Code: Select all

myButton->setTooltipText("This button will cause the self-destruct!");


HTH

CE


Return to “Help”

Who is online

Users browsing this forum: No registered users and 26 guests