Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic "slipping" table row anchor problem (Read 2586 times)
hoffmandev
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Oct 29th, 2007
"slipping" table row anchor problem
Oct 29th, 2007 at 1:44pm
Print Post  
Hello,

I am evaluating your FlowChart.NET product. I am currently experimenting with a sample application your provided (via download). The project I am working in is:

C:\Program Files\MindFusion\FlowChart.NET Trial Version\VS2005 (.NET 2.0)\Samples\C#\ClassDiagram

I have modified this project with the following code changes:

In MainForm.cs in "private TreeNode AddTypeWithContents(TreeNode parent, Type type) { ... }" I have modified it to include an additional column with anchors for methods:

[code]
if (!method.IsStatic)
{
   //changed: commented out
   //table[col, row].ColumnSpan = 2;
}

//code added:
table.Columns[col].Width = 28;

table[0, row].Image = _pureImages[methodIcon]; table[0, row].ImageAlign = ImageAlign.Center;
table[col, row].Text = methodName;
table[col, row].ToolTip = methodName;
table[col, row].Tag = 0;

//code added:
AnchorPoint ptinout = new AnchorPoint(50, 50, true, true, Color.Red, col + 1);
ArrayList al = new ArrayList();

table[col+1, row].ImageAlign = ImageAlign.Center;
table[col+1, row].Image = _generalImageList.Images[0];

al.Add(ptinout.Clone());

table.Rows[row].AnchorPattern = new AnchorPattern((AnchorPoint[])al.ToArray(typeof(AnchorPoint)));

//end code added

[/code]

This code has allowed me to have anchors on all methods. This is exactly what I want! However, I have seen a problem. The problem is when I draw a line from one anchor on "Table A, Row X" to another anchor in a different,  "Table B, Row X" then it does not stick. After the link is drawn the Origin anchor "slips" and attaches itself to Row 1 (or some other row).

Please let me know if you would like me to email you the entire MainForm.cs. listing (along with my changes). I can also send you a drawing of the issue as well.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: "slipping" table row anchor problem
Reply #1 - Oct 29th, 2007 at 2:56pm
Print Post  
Hello,

FlowChart.NET 5.0 had a bug related to anchor points and table rows. It should be fixed in version 5.0.1, which we released last week. If you are using V5.0, please try the new version:
https://mindfusion.eu/FCNetDemo.zip

Otherwise, please send your .cs file to our support email address.

Thank you,
Stoyan
  
Back to top
 
IP Logged
 
hoffmandev
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Oct 29th, 2007
Re: "slipping" table row anchor problem
Reply #2 - Oct 29th, 2007 at 4:02pm
Print Post  
Problem solved.

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