Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Delete the Connecting Nodes (Read 2845 times)
FMB
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Feb 18th, 2009
Delete the Connecting Nodes
Feb 18th, 2009 at 1:03am
Print Post  
How do you delete the connectiing arrows. If you have created on by mistake ?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Delete the Connecting Nodes
Reply #1 - Feb 18th, 2009 at 9:03am
Print Post  
You could handle the KeyDown event of the page's UserControl like this:

Code
Select All
private void OnKeyDown(object sender, KeyEventArgs e)
{
	if (e.Key == Key.Delete)
	{
		DiagramLink link = diagram.ActiveItem as DiagramLink;
		if (link != null)
			diagram.Links.Remove(link);
	}
}
 



You might handle the Diagram's KeyDown as well, but then the user would have to TAB a few time to get the focus to the diagram.

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