Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Possible to put AnchorPoints in caption of table? (Read 2907 times)
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Possible to put AnchorPoints in caption of table?
Mar 24th, 2008 at 6:20pm
Print Post  
I looked at caption but has no anchorpoints. Is this accomplished using absolute positioning or something?
  
Back to top
 
IP Logged
 
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Re: Possible to put AnchorPoints in caption of tab
Reply #1 - Mar 24th, 2008 at 6:29pm
Print Post  
OK I figured this out, you add the AnchorPoint to the node itself, not the rows.

But if I do this I seem to lose the snapping behavior. The link no longer snaps. It does snap when I return to adding the anchor point to the row's anchor point collection however.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Possible to put AnchorPoints in caption of tab
Reply #2 - Mar 24th, 2008 at 6:32pm
Print Post  
Not possible. Unless your tables' size is fixed - then you can use the regular AnchorPattern property and add some anchor points with very small Y. But if the user is allowed to resize your table, the points might go up or down since their coordinates are relative to the table size. To overcome this, you could use a fixed-size shape node attached to the table's caption area.
  
Back to top
 
IP Logged
 
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Re: Possible to put AnchorPoints in caption of tab
Reply #3 - Mar 24th, 2008 at 6:35pm
Print Post  
Stoyo wrote on Mar 24th, 2008 at 6:32pm:
Not possible. Unless your tables' size is fixed - then you can use the regular AnchorPattern property and add some anchor points with very small Y. But if the user is allowed to resize your table, the points might go up or down since their coordinates are relative to the table size. To overcome this, you could use a fixed-size shape node attached to the table's caption area.


That makes sense. What kind of node would be fixed size and that I could make invisible or have the same bg and border color as the background color of the caption and therefore hide the fact that its there?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Possible to put AnchorPoints in caption of tab
Reply #4 - Mar 24th, 2008 at 8:12pm
Print Post  
Try a rectangular ShapeNode with its Transparent and Locked properties enabled.
  
Back to top
 
IP Logged
 
davidl
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 13
Joined: Dec 3rd, 2007
Re: Possible to put AnchorPoints in caption of tab
Reply #5 - May 1st, 2008 at 12:03am
Print Post  
Hi Stoyo,

I am having the same problem that someone else mentioned: I've added an anchor point to a tablenode - I can see the anchor point, but I can not attach a link to it.

I've set AllowIncomingLinks to true for both the tablenode and the AnchorPoint.  Also, I have commented out all of my link handling events, so I am pretty sure I am not setting the event to null in my code.

This tablenode has 2 rows each with 2 anchor points that allow incoming and outgoing links. This works OK.

Here is a snippet of my code:

           // try to add anchor point to tablenode, not a row
           tablenode.AllowIncomingLinks = true;
           ArrayList CaptionAnchorList = new ArrayList();
           CaptionAnchorList.Clear();
           AnchorPoint CaptionAnchorPoint = new AnchorPoint(50, 10, true, true);
           CaptionAnchorPoint.AllowIncoming = true;
           CaptionAnchorList.Add(CaptionAnchorPoint);
           AnchorPattern AnchorPattern = new AnchorPattern((AnchorPoint[])CaptionAnchorList.ToArray(typeof(AnchorPoint)));
           tablenode.AnchorPattern = AnchorPattern;
           
         

I am really puzzled.  Thanks for any help.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Possible to put AnchorPoints in caption of tab
Reply #6 - May 1st, 2008 at 7:07am
Print Post  
Hi David,

What is the ConnectionStyle value for your tables? The Table.AnchorPattern is not considered if ConnectionStyle is set to Rows. Set it to either Both or Table, depending on whether you need connections to individual rows.

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


I love YaBB 1G - SP1!

Posts: 13
Joined: Dec 3rd, 2007
Re: Possible to put AnchorPoints in caption of tab
Reply #7 - May 1st, 2008 at 8:48pm
Print Post  
Stoyo,
Thanks!  That's what I needed to do.

For any other developers:

tablenode.ConnectionStyle = TableConnectionStyle.Both;


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