Quantcast
Channel: Measurement Studio for VC++ topics
Viewing all articles
Browse latest Browse all 653

Graph with several plots, one cursor programmatically jumps from plot to tlot

$
0
0

Hi, 

I am using MS 2013 with Vstudio 2010

I have a graph with 3 plots, and one cursor which in design time is attached to plot 0.

I need to reattach this cursor to plots 1 or 2, based on the index of my choise.

I guess one way would be to delete the existing gursor and re-create a new one, attached to a different plot.

But can it be done using already existing cursor?  I could not find a way to do it .

I need something like:

 

private void comboBoxCursor_SelectedIndexChanged(object sender, EventArgs e)
{
   var selected_plot = comboBoxCursor.SelectedIndex;
   var cur_indx = waveformGraphScope.Cursors.IndexOf(xyCursorScope);
   waveformGraphScope.Cursors. ????????.Plot[selected_plot ]
}

Thanks,

Igor


Viewing all articles
Browse latest Browse all 653


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>