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

Get plot cursor position DURING cursor move.

$
0
0

Hi, 

I am using MS 2013 with Vstudio 2010.

During dragging plot cursor by mouse, the current cursor positon is dynamically updated while it is moved.

However, the "scatterGraph.Cursors[0].XPosition" is only updated on event "AfterMove", when cursor is released.

I want to dynamycally change caption of the plot WHILE cursor is moved, like:

private void scatterGraph1_CursorChanged(object sender, EventArgs e) {
scatterGraph.Caption = "X=" + scatterGraph.Cursors[0].XPosition.ToString("#00.0") + ", Y=" + scatterGraph.Cursors[0].YPosition.ToString("0#.0");

}

During move, this even is fired, but Xposition Yposition do not change until mouse button is released.

I can see dynamic changes on a plot in the small box attached to cursor, however I cannot find a way to extract position of the cursor before mouse is released.

How I can do it?

Thanks, Igor

 


Viewing all articles
Browse latest Browse all 653

Trending Articles



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