LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get an event-based response to a graph cursor change?

Hello again,

i just tried my suggestion from my post. i catch the MOUSE UP event, compare the new coordinates with the old ones using a shift register, if they differ i write them to a hidden control via Val(signaling), and then catch VALUE CHANGED of that control (see attachment).

do you need an event AFTER the user leaves the cursor or WHILE the cursor moves?

best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 11 of 12
(578 Views)
I want to keep something updated WHILE the cursor is being dragged. In other words, I have another indicator which should match the cursor position at all times. I also enable/disable a button if the cursor is over/not over particular points on the plot.

I see that what you're doing could work, but it adds so much complication that it's not worth it. What I was looking for was not a way to manufacture an event, but a way to get a notification that the cursor had changed. Looks like it can't be done.

I can still track it, by setting/clearing a flag on MOUSE DOWN / MOUSE UP events, and setting a timeout value that's based on that flag. It's not exactly the way I wanted, but I don't see a more direct way.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 12 of 12
(571 Views)