Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic SetSnapToAnchor - Tables (Read 2234 times)
Brian Korinek
Guest


SetSnapToAnchor - Tables
Aug 19th, 2006 at 6:34pm
Print Post  
I set the SetSnapToAnchor setting as follows:

m_FlowChart.SetSnapToAnchor(saOnCreateOrModify);

but it does not seem to work for Tables?  Ideally I want a table to have one input anchor(located at top middle of table) and then one output anchor at right side of each row.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SetSnapToAnchor - Tables
Reply #1 - Aug 21st, 2006 at 5:32am
Print Post  
Hi,

Set the TableLinkStyle property to tlsBoth, so that users can connect arrows both to the rows of a table and the table itself. Use the RowAnchorPattern indexed property to assign to all rows an AnchorPattern that has one output point at the right-hand side. Use table.AnchorPattern to set an AnchorPattern that has one input point at the top-middle. Now if a user draws an arrow to a table, the control will look for input anchor points at each row, and if it does not find one, it will use the table's input point at the top.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Brian Korinek
Guest


Re: SetSnapToAnchor - Tables
Reply #2 - Aug 23rd, 2006 at 9:09am
Print Post  
I got it working!

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