Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Event, when moving nodes using ArrowKey ??? (Read 1634 times)
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Event, when moving nodes using ArrowKey ???
Jun 13th, 2009 at 12:30pm
Print Post  
Hi stoyan,

I want to know about the event which is being raised when I move nodes using arrow key.

To move nodes, I have used CustomBinding. Following is the the code which I have written in the constructor.

Code
Select All
diagram.CommandBindings.Add(new CommandBinding(Diagram.NavigateRight, (sender, args) =>
		{
		    DiagramNode activeNode = diagram.ActiveItem as DiagramNode;
		    if (activeNode != null && !TopologyViewControl.lockNodeMovement)
		    {
			  foreach (DiagramNode SelectedNode in diagram.Selection.Nodes)
			  {
				SelectedNode.Move(SelectedNode.Bounds.Left + 5, SelectedNode.Bounds.Top);
			  }
		    }
		})); 



Please help me out to solve this.

Thanks,
Bala
  
Back to top
 
IP Logged
 
Bala
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 156
Joined: Apr 21st, 2009
Re: Event, when moving nodes using ArrowKey ???
Reply #1 - Jun 14th, 2009 at 11:13am
Print Post  
Any suggestion for this?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Event, when moving nodes using ArrowKey ???
Reply #2 - Jun 15th, 2009 at 7:14am
Print Post  
Hi,

If you call DiagramNode.SetRect(rect, true), the control will raise NodeModified.

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