LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Program an event driven code to trace the mouse state

Hello,

 

I know when the mouse being over on a control, it can create a "EVENT_MOUSE_POINTER_MOVE" event, but is there any way to treat the mouse leaving a control? What I means is that not using the timer control to trace, but just use an "LEAVE EVENT", because the timer call back consumes too many CPU time. Hope can get an advise. Thanks.

 

 

David

0 Kudos
Message 1 of 5
(3,205 Views)

I was facing a simila issue and wrote a small sample program that mimics the toolbar buttons behaviour (evidencing a button when he mouse is over it and taking out evidence when leaving the button, without any click). You may find it useful



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,196 Views)

Hi Roberto,

 

GOOD JOB!

 

That is what I need. Thank you.

 

 

David

0 Kudos
Message 3 of 5
(3,192 Views)

A few years back I wrote a program to check mouseover on a non-rectangular control (a gauge in my case).  I wrote it back before any mouse events were built into CVI, so it uses the old extended mouse events.  Roberto's excellent example is more general purpose, but my example shows one way to show mouseover on a circle.

0 Kudos
Message 4 of 5
(3,171 Views)

Thank you, AI.

 

 

David

0 Kudos
Message 5 of 5
(3,158 Views)