Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Avoid boxes or ControlHosts from overlapping? (Read 2451 times)
Sushant Raut
Guest


Avoid boxes or ControlHosts from overlapping?
Jan 4th, 2006 at 11:49am
Print Post  
I want to have functionality like this:- I want to avoid overlapping of Nodes(Boxes and ControlHosts) while dragging or Moving in Flow Chart .NET
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Avoid boxes or ControlHosts from overlapping?
Reply #1 - Jan 4th, 2006 at 12:05pm
Print Post  
You could handle the BoxModified and ControlHostModified events and change the dropped node location if it overlaps another node. Use the Node.Intersects to determine whether two nodes intersect. It is up to you to choose where to place a node if it was dropped over another one.
  
Back to top
 
IP Logged
 
Sushant Raut
Guest


Re: Avoid boxes or ControlHosts from overlapping?
Reply #2 - Jan 5th, 2006 at 3:07am
Print Post  
Thanks stoyo. I thought about this solution but I want some good interface. while dragging node  itself user should recognise that on this place he can not drop perticular node.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Avoid boxes or ControlHosts from overlapping?
Reply #3 - Jan 5th, 2006 at 7:12am
Print Post  
Hi,

You might change the mouse cursor icon from the *Modifying event handlers to show that a node cannot be dropped at a particular location. Just set the FlowChart.Cursor property.

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