Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Undo ClearAll (Read 1499 times)
maui26
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: May 13th, 2008
Undo ClearAll
Nov 7th, 2008 at 3:47pm
Print Post  
--- For example:---

Diagram diagram = new Diagram()...
... stuff added to diagram by user ...

... user decides to clear all items in diagram so program calls
diagram.ClearAll();

... now user changes their mind and wants to undo clear all -
diagram.UndoManager.Undo();

------

So the call to Undo from UndoManager does not bring back the diagram before ClearAll was called...
I'm not sure if we already have this in place, but I don't see an easy way to undo the clear all function. Any suggestions?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Undo ClearAll
Reply #1 - Nov 7th, 2008 at 4:07pm
Print Post  
ClearAll also clears the undo manager history, so it's not possible to undo it. Instead of ClearAll, you could call Diagram.StartComposite and delete all items.

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 ClearAll
Reply #2 - Nov 7th, 2008 at 4:13pm
Print Post  
Wil do. Thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint