Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Undo and redo (Read 3909 times)
mah
Guest


Undo and redo
Sep 7th, 2005 at 2:30am
Print Post  
I am trying to do a events for undo and redo

FlowChart1.UndoManager.UndoEnabled = True
FlowChart1.UndoManager.Undo()

above is my code, but it wont works, anyone can help me on that?
  
Back to top
 
IP Logged
 
Iva
Junior Member
**
Offline


MindFusion support

Posts: 55
Joined: Aug 6th, 2005
Re: Undo and redo
Reply #1 - Sep 7th, 2005 at 5:05am
Print Post  
FlowChart.NET starts creating undo/redo records for modifications done on a diagram after your set

UndoEnabled = True

But then if you immediately call

UndoManager.Undo()

there isn't any record created yet, so nothing is undone. If you want to use the undo/redo functionality, set UndoEnabled somewhere in your application initialization code (e.g. a Form constructor or OnLoad handler), so FlowChart.NET record modifications from the very beginning.

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint