LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Capture mouse extend event on a panel(CVI 6.0) but not on a control"

The function EnableExtendedMouseEvents() can be called repeatedly to change the interval of a control's extended mouse events.But this function can't be used on a panel.
There is a function EnableExtendedPanelMouseEvents() in my attach files.This function can be called repeatedly to change the interval of a panel's extended mouse events. But it causes a large CPU usage.Can anyone explain to me how to do?
0 Kudos
Message 1 of 3
(2,691 Views)
chen,

Are you trying to capture extended mouse events that occur anywhere in the panel? If so, you can then you can use a transparent canvas that is sized as large as the whole canvas to detect the extended mouse events (like EVENT_MOUSE_MOVE). I've attached an example of this code for you. Is this what you're trying to accomplish?

David McClelland
National Instruments
Message 2 of 3
(2,691 Views)
Thank you
0 Kudos
Message 3 of 3
(2,691 Views)