Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Link route / control points (Read 9745 times)
Bass
YaBB Newbies
*
Offline



Posts: 31
Joined: Aug 27th, 2010
Re: Link route / control points
Reply #15 - Jun 7th, 2011 at 12:59pm
Print Post  
Yeah I dont know why it didnt capture that in the screen shot, but basically I am creating the link from anchor 3 to anchor 2 like in the picture.

But in real life in my system, there is a little red circle with a diagonal red line (i.e.: now allowed icon or something like that) the moment I hover over anchor point 2, or any other anchor for that matter.

When I release the mouse the link is not created.

This still happens in the winapp2_debug application.
  
Back to top
 
IP Logged
 
Bass
YaBB Newbies
*
Offline



Posts: 31
Joined: Aug 27th, 2010
Re: Link route / control points
Reply #16 - Jun 7th, 2011 at 1:03pm
Print Post  
With lack of better means, I took a picture with my phone.



This was running the winapp2-debug application.

UPDATE:

The versions of the assemblies I am using:

MindFusion.Common 1.2.3951.40403
MindFusion.Diagramming 5.5.0.24531
MindFusion.Diagramming.WinForms 5.5.0.24532
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link route / control points
Reply #17 - Jun 7th, 2011 at 1:12pm
Print Post  
This is expected if the mouse pointer is outside the node, and I suppose it is a couple of pixels above it on this screenshot. If you enable the link's AutoSnap property, it will automatically connect to nearby nodes even if the pointer is not over a node. However the control explicitly excludes the link's origin from the search then, so the pointer must still be inside the origin node to draw a reflexive link.
  
Back to top
 
IP Logged
 
Bass
YaBB Newbies
*
Offline



Posts: 31
Joined: Aug 27th, 2010
Re: Link route / control points
Reply #18 - Jun 7th, 2011 at 1:45pm
Print Post  
Aaaahhhh.. well yes, you are correct. That clears things up.

After moving carefully to find the anchor point I got it working.

Is there a way to show the anchor points of the destination node (even if its the same as the origin) when the mouse hovers over it?

It would be very useful so that users are not looking for that anchor point which is just 2 pixels away.

Regarding your suggestion, were is the AutoSnap property? I do not see it on the DiagramLink or Diagram.

UPDATE:

Never mind, I my actual application it works like that. I dont remember how I set it but its already done, so forget it.

Thanks for your help.



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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link route / control points
Reply #19 - Jun 7th, 2011 at 2:58pm
Print Post  
Sorry, I was thinking of the AutoSnapLinks and AutoSnapDistance properties we have in the Silverlight and WPF controls, but haven't implemented yet for Windows Forms. We can add them for the next release if that's what you need - connecting a link to the nearest node even if the mouse pointer is outside of the node.
  
Back to top
 
IP Logged
 
Bass
YaBB Newbies
*
Offline



Posts: 31
Joined: Aug 27th, 2010
Re: Link route / control points
Reply #20 - Jun 8th, 2011 at 5:16am
Print Post  
That would be great, thanks.

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint