Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Marking an X Range on a CNiGraph?

Hi,

I want to be able to mark an X range on the CNiGraph with the mouse. The range would be selected by graying out an X range on the graph. This range would then be used for math functions. Is there a way to select an X range, what event or flag would enable this?

Thanks,
Miklos Kalman
0 Kudos
Message 1 of 2
(2,954 Views)
You can use an annotation to highlight the range selection and two cursors to handle the selection. You can handle the OnCursorChange event on the graph to receive notification when the positions of the cursors change, then update the annotation accordingly to update the selection.

- Elton
Message 2 of 2
(2,954 Views)