Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mouse position for Multiple selection (Read 1897 times)
tusharpateluk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 3rd, 2008
Mouse position for Multiple selection
Oct 22nd, 2008 at 9:09am
Print Post  
While handling the Node Modified event, I have observed that If you have multiple items selected mouse position is 0,0 whereas when you select a single node you get the correct mouse position.

I am trying to drag and drop a node on to another node. The node which is dragged will be replaced with the node on which it is dragged. Their are few situations where few nodes are grouped together and when node is being dragged I need to drag the connected node also.

Is their any way to find out If current dragged node is on another node.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Mouse position for Multiple selection
Reply #1 - Oct 22nd, 2008 at 12:10pm
Print Post  
You might use the Rect.IntersectsWith method, for example

if (e.Node.Bound.IntersectsWith(anotherNode.Bounds))
     ...

I hope that help,
Stoyan
  
Back to top
 
IP Logged
 
tusharpateluk
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 37
Joined: Sep 3rd, 2008
Re: Mouse position for Multiple selection
Reply #2 - Oct 22nd, 2008 at 12:29pm
Print Post  
Thanks that works
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint