Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to stop links at border of tablenode? (Read 2776 times)
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
How to stop links at border of tablenode?
Mar 31st, 2008 at 8:33pm
Print Post  
I have the links now properly connecting one table node anchor point to another's input anchor point.

However the link and arrow head go into the incoming table node and I would like it to stop right at the border edge of the table now on the row? I see this in the Database Relationship Diagram example in the samples, but I do not see a particular project for this.

Is there a property that describes this?
  
Back to top
 
IP Logged
 
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Re: How to stop links at border of tablenode?
Reply #1 - Mar 31st, 2008 at 8:42pm
Print Post  
I tried this but it's not working as far as I can tell:

diagram.LinksSnapToBorders = true;
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to stop links at border of tablenode?
Reply #2 - Apr 1st, 2008 at 8:03am
Print Post  
Anchor points override the LinksSnapToBorders behavior. Setting the anchor points X coordinates to exactly 0 or 100 should place them exactly on the table borders.

The input / output images shown in the demo aren't assigned to the anchor points, but to the Cell.Image, so they can be drawn inside the table, even if the anchor points are at the borders.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Re: How to stop links at border of tablenode?
Reply #3 - Apr 1st, 2008 at 12:58pm
Print Post  
Oh so to have an anchor point that snaps to border but shows its image inside the cell, you have to turn off the built in image for the anchor point so its invisible, and then render the image on your own in the cell?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to stop links at border of tablenode?
Reply #4 - Apr 1st, 2008 at 4:44pm
Print Post  
I suppose you can set the point.Style to Custom and in the DrawAnchorPoint event handler draw the image slightly offset from the point.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Re: How to stop links at border of tablenode?
Reply #5 - Apr 1st, 2008 at 6:01pm
Print Post  
If I do that and rely on the Location property on the event arg, it ends up drawing the anchors way off the node itself. I don't see any correlation between the location and where it should really be.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to stop links at border of tablenode?
Reply #6 - Apr 1st, 2008 at 8:49pm
Print Post  
It is the same location where the standard anchor point would be drawn if not using custom drawing. You can see the DrawAnchorPoint event handled in the Anchors sample project.

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