Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic cannot create arrow (Read 2868 times)
x-fgi
YaBB Newbies
*
Offline



Posts: 35
Joined: Aug 14th, 2009
cannot create arrow
Aug 25th, 2009 at 1:43pm
Print Post  
Hi Stoyo I'm Franco again,
I programmatically created a box, but when I try to manually add a link to it ( i.e. with the mouse)
I see the mouse pointer with an hand and the "access denied" picture.
The object is created with both AllowIncomingArrows and AllowOutgoingArrows set to True.
The access denied appears either when the icon is the OriginBox or the DestinationBox of the arrow.
In the Flowchart there are other (programmatically created) boxes already connected between them.
These other boxes can be manually connected between them.
What I've done wrong yet? Embarrassed

p.s. the flowChart.behavior is set to bhCreateArrow
  

Franco
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: cannot create arrow
Reply #1 - Aug 25th, 2009 at 2:52pm
Print Post  
Hi Franco,

This could happen if the boxes are Locked, or if their AnchorPattern is not set while AllowUnanchoredArrows is disabled. It would also happen if you return false from the RequestCreateArrow event. If you still can't find the problem, you might save the flowchart file after creating the boxes and email it to support@mindfusion.eu for us to check.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
x-fgi
YaBB Newbies
*
Offline



Posts: 35
Joined: Aug 14th, 2009
Re: cannot create arrow
Reply #2 - Aug 25th, 2009 at 3:29pm
Print Post  
well,  I miss to assign the AnchorPattern!

Now I only have to define my Own Achors pattern...

I hope it is possible to define all-in all-out pattern .... isn't it?
Franco
  

Franco
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: cannot create arrow
Reply #3 - Aug 25th, 2009 at 3:32pm
Print Post  
it's possible, set both allowin and allowout arguments of AddAnchorPointF to true.
  
Back to top
 
IP Logged
 
x-fgi
YaBB Newbies
*
Offline



Posts: 35
Joined: Aug 14th, 2009
Re: cannot create arrow
Reply #4 - Aug 26th, 2009 at 12:45pm
Print Post  
Hi Stoyo, I found the real reason why I wasn't able to create the arrows.....
the other Icons (those "programmatically created") has been created before I fire
FlowChart.FitDocToObjects(...);
The new Icons I was trying to connect was simply added outside this area without re-fitting....
so all objects outside the Fit Area cannot be connect, even if they are not locked, nor they have anchors nor AllowUnanchoredArrows  nor.....
anyway now I Fire fitDocToObjects as soon as I create any objects in the doc.
  

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