How to Undo sequential zooms one by one?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
fano
Newbie
Newbie
Posts: 56
Joined: Wed Jun 22, 2005 4:00 am
Location: USA, California

How to Undo sequential zooms one by one?

Post by fano » Sat Mar 04, 2006 12:23 am

Hi,
when a user zooms a graph with the mouse successivly, i.e.
1st Zoom
2nd Zoom further
3rd Zoom further

How can I undo the zoom incrementally ??i.e. refering to the
3 zooms above:

1. Undo zoom to where the graph was after the 2nd zoom
2. Undo zoom to where it was after the 1st zoom
3. Undo zoom to be back where the graph was in the beginning.

Thanks,
fano

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

Post by Narcís » Mon Mar 06, 2006 9:47 am

Hi fano,

You could do that by storing vertical and horizontal axes minimum and maximum positions after each zoom is done. To undo the zoom you can use axes SetMinMax method to restore each axes minimum and maximum values.
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