Tooltip if Window is disabled?

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

Toge
Just popping in
Just popping in
Posts: 12
Joined: Thu Jan 22, 2009 21:59

Tooltip if Window is disabled?

Postby Toge » Tue Mar 24, 2009 21:32

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?

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

Postby CrazyEddie » Wed Mar 25, 2009 10:03

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 16 guests