Hi again.
When I disabled a Button, its tooltips isn't shown. Can I force it? I want to avoid a new layer on top button.
Thanks.
Edit: How align left tooltip text?
Tooltip if Window is disabled?
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
When a window / widget is disabled tooltips do not currently function. I think this behaviour is incorrect also, and so will raise it as a bug. I don't think there is an easy work-around because the code that makes the decision update the tool-tip target (or not) is deep within CEGUI (basically a disabled window gets no input at all from the System object, because of this the Window is not informed that the mouse has entered it and so does not update the tooltip target).
With regards to changing the text formatting, you should look in the looknfeel file for the tooltip definition. For example, in my TaharezLook.looknfeel, at around line 3167, there are lines that specify the formatting, and changing the HorzFormat line from "CentreAligned" to "LeftAligned" should do the trick.
CE.
When a window / widget is disabled tooltips do not currently function. I think this behaviour is incorrect also, and so will raise it as a bug. I don't think there is an easy work-around because the code that makes the decision update the tool-tip target (or not) is deep within CEGUI (basically a disabled window gets no input at all from the System object, because of this the Window is not informed that the mouse has entered it and so does not update the tooltip target).
With regards to changing the text formatting, you should look in the looknfeel file for the tooltip definition. For example, in my TaharezLook.looknfeel, at around line 3167, there are lines that specify the formatting, and changing the HorzFormat line from "CentreAligned" to "LeftAligned" should do the trick.
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 16 guests
