We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Do() and Undo() suite

Thread ID:

Created:

Updated:

Platform:

Replies:

43038 Apr 12,2006 08:37 AM Apr 20,2006 02:56 AM Windows Forms 4
loading
Tags: Diagram
Newlab
Asked On April 12, 2006 08:37 AM

Hi, I use both methods ''do()'' and ''undo()'' provided by Diagram Class. If I do() 6 commands on the diagram and after I undo() 3 commands, I can undo() more 3 commands. But now, if I decide to do() a new command, logically three last command will be destroyed. It''s not the case of the diagram. Please can you give me a way to fix it ? THX!

Administrator [Syncfusion]
Replied On April 13, 2006 09:26 AM

Hi, Thanks for your interest in Syncfusion. I am looking into this issue and will provide you with an update within two days. Regards, Praveena.

Newlab
Replied On April 19, 2006 09:24 AM

Any news regarding this feature? thanks Jonathan Urban.

Administrator [Syncfusion]
Replied On April 20, 2006 02:38 AM

Hi, My apologies for the delay in getting back to you. The feature you are requesting can be implemented by clearing the Undo/Redo stack instantly by calling the DiagramController.ClearHistory () method. The DiagramController.ClearHistory () method will be used to remove all the commands from the undo and redo stacks. If you want to clear any one of the stack and leave the remain unchanged, the way to accomplish this would be by customizing the DiagramController class , providing suitable code implementation for the UndoCommand()/RedoCommand() override methods and calling the undoStack.clear()/redoStack.clear() methods at the required place. The undoStack() contains/maintains all the Undo commands and the redoStack() contains/maintains all the Redo commands. Please let me know if you have any questions. Thank You, Praveena.

Administrator [Syncfusion]
Replied On April 20, 2006 02:56 AM

Hi Jonathan Urban, Also DiagramController.undoStack/redoStack are the stack objects that will let you get hold of the commands that can have Undo/Redo applied. I forgot to mention this in the previous update. I am sorry about this. Thank You, Praveena.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;