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
|