Page 1 of 1

how to check if chart is scrolled and the scroll amounts

Posted: Tue May 06, 2008 12:47 pm
by 14048025
Hi,

I have an x-axis which has 2 types of values (one with large values and the other with very small values), which the user can switch between them.
Whenever the chart is zoomed or scaled, and the x-axis gets the other set of values, the scale changes.
I want to return to the same zoom/scale applied with the other x-axis.
I've done this for zoom, by keeping all last zoom rectangles, and then manually zooming out and back in with those zoomes.

my probelm is with scroll. How do i check if the current chart is scrolled and the amount it is scrolled (in each direction), in order to mimic it manually by code ?

Regards,

Yair

Posted: Tue May 06, 2008 1:17 pm
by narcis
Hi Yair,

You should use Scroll event for retrieving axes min. and max. values and then restore them manually using axes SetMinMax method.

Hope this helps!