Page 1 of 1

How to Undo sequential zooms one by one?

Posted: Sat Mar 04, 2006 12:23 am
by 9637279
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

Posted: Mon Mar 06, 2006 9:47 am
by narcis
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.