Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Diagram.NodeModifying vs Diagram.SelectionMoving (Read 1446 times)
Benoit Caron
YaBB Newbies
*
Offline



Posts: 10
Joined: Apr 8th, 2009
Diagram.NodeModifying vs Diagram.SelectionMoving
Apr 8th, 2009 at 9:14pm
Print Post  
Hello everyone,

If I select one node in my diagram and move it, the event Diagram.NodeModifying is raised and the event Diagram.SelectionMoving i is not.

If I select two nodes, it is the opposite.

Why are they releated?  I was expecting both events to be raised regardless of how many nodes are selected.

Is this the expected behaviour?

thanks,
Benoît Caron


  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Diagram.NodeModifying vs Diagram.SelectionMovi
Reply #1 - Apr 9th, 2009 at 7:46am
Print Post  
Well, yes, the control makes distinction between moving or resizing a single node and moving a multiple selection of nodes. In the latter case it is always a move operation, while the former could be rotation or resize operation as well. Also it would complicate event handling a bit, e.g. what should happen if you set e.Cancel or call e.CancelDrag() from the NodeModifying handler raised for some node in a multiple selection?

Stoyan
  
Back to top
 
IP Logged
 
Benoit Caron
YaBB Newbies
*
Offline



Posts: 10
Joined: Apr 8th, 2009
Re: Diagram.NodeModifying vs Diagram.SelectionMovi
Reply #2 - Apr 9th, 2009 at 1:41pm
Print Post  
Good point.  Thanks for the info.

Benoît Caron
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint