how to check if chart is scrolled and the scroll amounts

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
yair
Newbie
Newbie
Posts: 15
Joined: Wed Jan 16, 2008 12:00 am

how to check if chart is scrolled and the scroll amounts

Post by yair » Tue May 06, 2008 12:47 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue May 06, 2008 1:17 pm

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!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply