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
TOOLTIPS
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: TOOLTIPS
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:
Then you just set the string you want for each window via either Window::setTooltipText or via the Tooltip property. For example, in code:
HTH
CE
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
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Who is online
Users browsing this forum: No registered users and 26 guests
