Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I add vertical scroll bar to the CWGraph?

I wonder if the vertical scroll bar is implemented in your CWGraph?
0 Kudos
Message 1 of 4
(3,158 Views)
No there is no built-in vertical scroll bar for the graph. You can put the mouse mode to Pan Zoom and pan the plot data with the mouse by setting the track mode to TrackPanPlotAreaY, but you won't have a scroll bar.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(3,158 Views)
You could also put a VB VScrollBar control next to the graph and programatically change the axes' ranges in the Change event of the scroll bar.

- Elton
Message 3 of 4
(3,158 Views)
Sorry ... I just realized that you're using VC++ and not VB. Same principle applies, though - you could use a CScrollBar on the dialog and respond to the appropriate scrollbar messages.

- Elton
0 Kudos
Message 4 of 4
(3,158 Views)