Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

CNiGraph and runtime querying

I'm using a CNiGraph to display a large chunk of data and then am panning and zooming to look at the section that I want. How do I determine what portion of the graph is showing at runtime?

Alternative question...
The reason for needing to know what the graph is currently showing is because if the graph is panned away from the current cursor position, it's impossible to get the cursors to move with the mouse. Is there another way around this?

I'm updating the TrackMode corresponding to what the user selects, zoom, pan, or cursors.

Thanks
0 Kudos
Message 1 of 3
(3,496 Views)
Here is some code that might help. It'll find your cursor and give you a range of +/- 2 units on your x and y. Email me if you have any basic MS questions.

Grant
Grant M. Johnson
Project Engineer
LECO Corporation
0 Kudos
Message 2 of 3
(3,496 Views)
Thanks, but what I'm really trying to do, in effect, is move the cursor to the displayed section of the graph, not zoom the graph to the cursor.

Nate
0 Kudos
Message 3 of 3
(3,496 Views)