Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Maximum Links (Read 2778 times)
gringogordo
YaBB Newbies
*
Offline


Flowcharting is my life
baby

Posts: 12
Joined: Nov 13th, 2007
Maximum Links
Nov 15th, 2007 at 11:07am
Print Post  
Hi,

Is there a way to limit

1) the number of links that a shape node will accept in and allow out (preferably one in one out) ?

2) the number of shape nodes of a particular type that can be added to a diagram ?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Maximum Links
Reply #1 - Nov 15th, 2007 at 2:59pm
Print Post  
Hi,

There are some link and node validation events you could handle to implement that. Since "shape node" is a name from the FlowChart.NET API, I assume you are using our .NET control. The validation events you need to handle are called LinkCreating, NodeCreating and LinkModifying in FlowChart.NET. If you are using FlowChartX, the corresponding event names are RequestCreateArrow, RequestCreateBox and RequestAttachArrow.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
gringogordo
YaBB Newbies
*
Offline


Flowcharting is my life
baby

Posts: 12
Joined: Nov 13th, 2007
Re: Maximum Links
Reply #2 - Nov 15th, 2007 at 3:20pm
Print Post  
Yes thanks I found that if I set the AllowIncomingLinks property to false for the destination in the LinkActivated event it does the job (in case anyone else looks at the forum for this!)

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Maximum Links
Reply #3 - Nov 16th, 2007 at 8:45pm
Print Post  
{ moved from FlowChartX / Discussion }
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint