11-25-2016 01:49 AM
Hi everyone,
I am trying to trigger several events (autoscale, zoom) on a graph by key down event when my mouse is on the graph. Is that possible?
I attached an vi to demonstrate the issue.
Solved! Go to Solution.
11-25-2016 02:02 AM
Hi Xiang,
a graph usually is an indicator, so it might be hard to receive UI events meant for controls…
by key down event when my mouse is on the graph
You can use one event case to detect "mouse over graph". Using this information you can use another event case to receive all key input events of the whole VI frontpanel, but only handle them when mouse is over the graph…
11-25-2016 03:06 AM
Dear GerdW,
Thank you very much for your promet reply.
With your advice I solved my issue perfectly.
Best regards,
Xiang
02-01-2021 06:37 AM
Hi Xiang00,
I am trying something similar, but I could not follow this thread. Do you mind sharing your code in 2014 version? My goal is to zoom in/out the y-scale of a graph with the mouse scroll.
Thanks!
02-03-2021 06:19 AM
@rpicazof wrote:
Hi Xiang00,
I am trying something similar, but I could not follow this thread. Do you mind sharing your code in 2014 version? My goal is to zoom in/out the y-scale of a graph with the mouse scroll.
That is a totally different problem.
Use an event structure to catch the Mouse Wheel event on the VI's pane(s). Then use the graph's property nodes to change the graph's scales.