MouseHover

P

Phenix Smith

I am working on the component and would like to change a display when the
user stops moving the mouse inside the control. I used the MouseHover and
MouseMove to change the status, but the MouseHover does not fire again
unless the mouse is moved outside the control. Is there a something I am
missing or Is there a better way to do this.


Thanks for any help
 
M

Mythran

Phenix Smith said:
I am working on the component and would like to change a display when the
user stops moving the mouse inside the control. I used the MouseHover and
MouseMove to change the status, but the MouseHover does not fire again
unless the mouse is moved outside the control. Is there a something I am
missing or Is there a better way to do this.


Thanks for any help

You could try to catch the MouseMove event, set a flag that states that the
mouse is "moving" over the control. Set a timer, (use timer control), once
time has elapsed change the display if the mouse' coordinates are inside the
control's area. If the MouseMove event fires again, restart the timer. May
not need MouseHover at all :)

Hope this helps.

Mythran
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top