Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Delete multiple nodes (Read 1789 times)
matt.s
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Apr 3rd, 2008
Delete multiple nodes
Jun 5th, 2009 at 9:13am
Print Post  
Hi,

Currently when a user selects more than one node on a diagram and presses [DEL] the delete event is fired once for each selected node.

Is it possible to have one event fire with all the selected nodes in the EventArgs?

Thanks in advance
Matt
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Delete multiple nodes
Reply #1 - Jun 5th, 2009 at 11:05am
Print Post  
There is no direct support for this. You could add your own binding for ApplicationCommands.Delete to diagram.CommandBindings and raise some event from the command's executed handler. If you have undo/redo enabled, another option is to handle the ActionRecorded event and check if the recorded action is a CompositeCommand with title "_fcnet_delete_selection"...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
matt.s
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 56
Joined: Apr 3rd, 2008
Re: Delete multiple nodes
Reply #2 - Jun 5th, 2009 at 1:44pm
Print Post  
Hi,

Thanks for the quick response.

I've had a look at this and it looks as though the proposed solution will work fine.

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