Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic shape and link undo/redo (Read 2967 times)
hhko
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Feb 9th, 2010
shape and link undo/redo
Feb 22nd, 2010 at 11:59am
Print Post  
Hi. Grin

I select shape3 and Line2.
http://cfile8.uf.tistory.com/original/121A17254B82701F085DE7

I push 'del' key.
http://cfile2.uf.tistory.com/original/131A17254B82701F09B9A8

I call undo. ---> first.
http://cfile8.uf.tistory.com/original/111A17254B82701F0AD11A

I call undo. ---> second.
http://cfile25.uf.tistory.com/original/111A17254B8270200B27AA

I think that first and second undo command must be performed at once(composite).
but. divided two commands.

why? how to composite undo?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: shape and link undo/redo
Reply #1 - Feb 22nd, 2010 at 12:13pm
Print Post  
Hi,

The control already creates a composite command from what I can see in my test project. Are you using the latest version 5.3.3?

Stoyan
  
Back to top
 
IP Logged
 
hhko
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Feb 9th, 2010
Re: shape and link undo/redo
Reply #2 - Feb 22nd, 2010 at 12:39pm
Print Post  
Yes. I bought version 5.3.3 with source.

but. I attacted dll files was compiled my computer.

Is source code version 5.3.3?
  
Back to top
 
IP Logged
 
hhko
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Feb 9th, 2010
Re: shape and link undo/redo
Reply #3 - Feb 22nd, 2010 at 12:56pm
Print Post  
I sended my sample project and source code 5.3.3. to your mail.

please check?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: shape and link undo/redo
Reply #4 - Feb 22nd, 2010 at 1:53pm
Print Post  
The code is for version 5.3.3, but check if you haven't built a Standard-edition version of the Diagramming.WinForms project by some chance. Note the following code in the DiagramView.DeleteSelection method:

Code
Select All
#if !STANDARD_EDITION
	// This returns the active composite if somebody has already created one
	CompositeCmd composite = diagram.UndoManager.StartComposite(
		"_fcnet_delete_selection", true);
#endif 



Stoyan
  
Back to top
 
IP Logged
 
hhko
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 20
Joined: Feb 9th, 2010
Re: shape and link undo/redo
Reply #5 - Feb 22nd, 2010 at 3:23pm
Print Post  
thank you very much.  Grin
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint