Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Cut/Paste didn't work for group nodes (Read 2518 times)
softsara
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Apr 25th, 2012
Cut/Paste didn't work for group nodes
Jul 3rd, 2012 at 12:06pm
Print Post  
dgDiagram.CutToClipboard(false);
This method call doesn't copy the group nodes. Short cut Ctrl + X also doen's copy the group nodes.  Embarrassed

How to do it?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cut/Paste didn't work for group nodes
Reply #1 - Jul 4th, 2012 at 7:12am
Print Post  
We'll add a new CutToClipboard overload that copies groups for the next release. For the time being, you could use the CopyToClipboard overload that takes a 'groups' parameter to copy the grouped nodes, and then remove the nodes from the diagram.

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


I Love MindFusion!

Posts: 4
Joined: Apr 25th, 2012
Re: Cut/Paste didn't work for group nodes
Reply #2 - Jul 4th, 2012 at 2:21pm
Print Post  
Thanks Smiley. In that case, how to disable the Ctrl + X feature?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Cut/Paste didn't work for group nodes
Reply #3 - Jul 5th, 2012 at 8:56am
Print Post  
You can override the default Cut command binding like this:

Code
Select All
diagram.CommandBindings.Add(
	new CommandBinding(ApplicationCommands.Cut, (sender, args) => MyCutMethod())); 



Pass an empty lambda expression to disable Ctrl+X altogether.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint