Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Overlapping of boxes (Read 1855 times)
Jonathon
Guest


Overlapping of boxes
Jul 14th, 2006 at 9:26am
Print Post  
Hi,

Is it possible to disable a box from overlapping other boxes? I'm not sure if this would be a feature in the FC so if it is, it would be great to know.

Or if anyone has any suggestions, that would be great.

Thank you,
Jonathon
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Overlapping of boxes
Reply #1 - Jul 14th, 2006 at 1:20pm
Print Post  
Hi,

In FlowChart.NET 4.2 BoxModifying is a validation event. You will be able to prevent dropping a box over another box by handling that event. If you return false from BoxModifying, the control will display a Stop cursor at the modified box position, and if the user tries to drop the box there, it will jump back to its old position. Is that close to what you need?

Stoyan
  
Back to top
 
IP Logged
 
Jonathon
Guest


Re: Overlapping of boxes
Reply #2 - Jul 27th, 2006 at 7:22am
Print Post  
Thanks,

That does help a bit. However, I'm looking to find out if there is anything (e.g. another box or even the tip of a triangle shape - just anything) in the area of where a box would lie before placing it.

Like the GetArrowAt method with it's 'maxdistance' value, is there a similar one for the box? Or would it just require doing a 'GetObjectAt' at each point around the perimeter of the box?

Thanks,
Jonathon
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3153
Joined: Oct 19th, 2005
Re: Overlapping of boxes
Reply #3 - Jul 27th, 2006 at 8:29am
Print Post  
This method should help:

bool Node.Intersects (Node node);

It takes into account the shape of boxes when testing for intersection. You will have to call it for all boxes near the one being dragged.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint