02-07-2011 06:30 AM
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
02-07-2011 08:36 AM
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
02-07-2011 09:18 AM
Hi Roberto,
GOOD JOB!
That is what I need. Thank you.
David
02-07-2011 11:40 AM
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.
02-08-2011 12:47 AM
Thank you, AI.
David