View Full Version : Pan/Zoom Previous
03-14-2001, 06:47 AM
I need to implement PAN/ZOOM Prevoius. I want the user to be able to back up through previous views (Like AutoCAD does ZOOM Prevoius). Pan and Zoom is implemented but I'm not sure how I should go about saving the current information prior to the next view then how do I reinstate the view on a Pan/Zoom Prevoius command. Basically I want to save the parameters of each view into an array the backup up through that array. Any ideas or examples are appreciated.
03-14-2001, 10:27 AM
If you implement a structure that stores the current state, you can push this onto a stack before the user does anything. To go back, pop it off the stack, reset the view and redraw.
03-14-2001, 11:07 AM
Thanks Chris. That's what I thought I needed to do but I was not sure if there was some trick to doing this.
03-14-2001, 01:24 PM
Hi Don ,
Witch kind of zoom are you implementing ? Are you implementing zoom window ? If yes, how ?
Tnks in advance ,
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.