Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Undo Zoom to Fit (Read 1209 times)
maui26
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: May 13th, 2008
Undo Zoom to Fit
Oct 6th, 2008 at 12:18pm
Print Post  
Is there built-in functionality for undo-ing a Zoom-to-fit? Just checking so I don't try to re-invent if it's already out there.

thanks!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo Zoom to Fit
Reply #1 - Oct 7th, 2008 at 7:52am
Print Post  
There isn't. You will have to create your own Command-derived class. Add oldZoom and newZoom fields to it, and set DiagramView.ZoomFactor to one of these values from the Undo / Redo overrides.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
maui26
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: May 13th, 2008
Re: Undo Zoom to Fit
Reply #2 - Oct 8th, 2008 at 3:06pm
Print Post  
yep, thanks! I figured as much.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint