Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Drag points on plot to redraw plot

I am trying to make an interactive parametric EQ using measurement studio.  Currently I have controls outside of the window that change the plot but I have been asked to allow the user to pick a point on the plot and drag to change instead of using external controls.

 

In order to do this I would like first put small icons on the plot that show the user where they can click to drag the plot.

 

Then when the user clicks the icon the plot would get updated real time to show the resulting waveform.  Some points will allow the user to move the section of the plot up or down while others will allow the user to move the section left or right to widen the waveform.

 

I think I can use small annotation symbols to show the user were to click but how do I handle the dragging and redraw of the plot and annotations in realtime as the user drags the waveform?

0 Kudos
Message 1 of 2
(3,448 Views)

It sounds like you are simply trying to do panning and/or zooming on button clicks. This functionality may aleady be there and you don't even know it. The WaveformGraphs have a Behavior Property called InteractionMode where you can set Zooming, Panning, Dragging, and Range settings with mouse clicks. If you have these selected you can do the panning by holding CTRL+Mouse Drags and zooming by SHIFT+Mouse Drags.

 

Regards,

 

Steven Zittrower

Applications Engineer

National Instruments

http://www.ni.com/support

0 Kudos
Message 2 of 2
(3,414 Views)