06-05-2009 10:13 AM
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?
06-08-2009 03:50 PM
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