mouse hover problem

  • Thread starter Thread starter wanwan
  • Start date Start date
W

wanwan

I'm trying to get the cursor changed to a hand whenever it stops in
the form, and have it changed back to default whenever the mouse
moves. So the common sense is to use the mousehover and mousemove
event.

The problem with using mousehover event is the event is triggered only
once after the mouse enters the form. I need mousehover to be
triggered whenever the mouse stops.

Is there a solution to the problem?
 
Hello WanWan,
The problem with using mousehover event is the event is triggered only
once after the mouse enters the form. I need mousehover to be
triggered whenever the mouse stops.

Set a timer and in the timer event compare the current position with the
previous position. If there is no change the mouse movement stopped.

Best regards,

Martin
 
Back
Top