Tooltip if Window is disabled?
Posted: Tue Mar 24, 2009 21:32
by Toge
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?
Posted: Wed Mar 25, 2009 10:03
by CrazyEddie
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.