Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Two questions... (Read 1901 times)
phd_sweden
YaBB Newbies
*
Offline



Posts: 2
Joined: Dec 18th, 2010
Two questions...
Jan 2nd, 2011 at 10:04pm
Print Post  
Two questions...

Q1) How to control the number of arrow that can be draw to an anchorpoint?

Q2) How to make it impossible to draw an arrow from an input  anchorpoint to a output anchorpoint (or vs.) which belong to a single box?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Two questions...
Reply #1 - Jan 3rd, 2011 at 1:49pm
Print Post  
1. If you are not using undo/redo, an easy solution is to delete the new arrow in response to the ArrowCreated event. In that case you will know to which anchor point the arrow has been attached, and can count how many arrows are attached to it. Otherwise you can prevent that from the validation event RequestCreateArrow, but you will need some additional code to detect the nearest anchor point because it is not passed as argument to the event. I can send you some sample code if you need detecting the nearest point.

2. Set AllowRefLinks = false.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint