LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph "mouse move" event stops generating when click on cursor

Hello All
When the mouse is moving freelly inside the XY graph control, the "mouse movement" event is fired.
The same happens when muse clicks anywhere in the graph with the exception of cursors.
hen mouse clicks on cursors the "mouse move" event is NOT generated even though the mouse is phisically moved.
Is there any explanation to this.
I enclose the example.
regards
Pawel
0 Kudos
Message 1 of 3
(2,425 Views)
I cannot do much for an explaination--it is just the way the graph
works. I speculate that the cursor is part of the graph but it is
treated separately. By mousing down and moving the cursor, the UI
thread is locked by the cursor code. This prevents other events from
firing like mouse move. If you would like to see the behavior
changed, you can submit feedback to R&D. Goto www.ni.com >> contact
ni (top bar)>> feedback.
0 Kudos
Message 2 of 3
(2,424 Views)
Just today I had the same problem -> my solution:

set event timeOut to some value(I have it at 1ms) then
add to globalVariables some BOOL variable that will signal if mouse is down or up (set the flag in appropriate event),
then add a case in the timeOut event which will read this
global variable(flag) -> if it's TRUE then change the needed parameter.

So even if the mouse move event isn't fired the main timeout event is.

Not a perfect solution, but better than nothing.

Peace
Waldemar
0 Kudos
Message 3 of 3
(2,353 Views)