I searched a while and couldn't find what I was looking for. I just started using the tooltips and they seem to work pretty well. My only concern is that when the tooltip is active and I move the mouse outside of the area that activates that particular tooltip, I end up with a brief display of an empty tooltip. I assume that it's because the area that the mouse is going into doesn't have an assigned tooltip. I think that I read that all objects have a tooltip but they're just always alpha'd out? Is there anyway to suppress the tooltip if there's no text in it? It seems to do that normally except when one is visible and then the mouse leaves the area.
Thanks for any help
*SOLVED* Tooltips when leaving active window
Moderators: CEGUI MVP, CEGUI Team
*SOLVED* Tooltips when leaving active window
Last edited by jonmiller on Mon Jan 11, 2010 16:06, edited 1 time in total.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Tooltips when leaving active window
Hi,
Are you injecting time pulses correctly? IIRC I have seen similar behaviour when time pulse injection is not done correctly.
With regards to the the inner workings, in the general case there is only a single tool tip object created and this shared by all windows and widgets - it's state and text getting updated according to mouse events and time passing.
Stating the library version and renderer module in use would have given us more info to go on.
CE.
Are you injecting time pulses correctly? IIRC I have seen similar behaviour when time pulse injection is not done correctly.
With regards to the the inner workings, in the general case there is only a single tool tip object created and this shared by all windows and widgets - it's state and text getting updated according to mouse events and time passing.
Stating the library version and renderer module in use would have given us more info to go on.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
*SOLVED* Re: Tooltips when leaving active window
Thanks for the tip. Apparently the place where I was calling injectTimeImpulse() wasn't correct, so I moved it to a more "correct" place and it works as intended now.
Re: *SOLVED* Tooltips when leaving active window
Edit: OK, I figured it out. To clarify for anyone else who has this problem, just play around with your time pulse injection. For me, (perhaps for everyone), you need to send the time pulse immediately AFTER you inject all your events.
Code: Select all
cegui.injectStoredEvents ()
cegui.injectTimePulse (csng(currentTimeInterval))
Who is online
Users browsing this forum: No registered users and 23 guests