Hi !
Quote:make sure you haven't missed anything, e.g. the AnchorPattern definition
To be honest i canīt find any bug in my code.
// set connection points
AnchorPoint ptin = new AnchorPoint(50, 50, true, false, Color.Red, 0);
AnchorPoint ptout = new AnchorPoint(50, 50, false, true, Color.Red, 3);
ArrayList al = new ArrayList();
for (int i = 0; i <= 0; i++) // <= 2
{
al.Clear();
if (!(form.GetInput(i) == null))
{
t[0, i].ImageAlign = ImageAlign.Center;
t[0, i].Image = images.Images[0];
t[1, i].Text = form.GetInput(i);
al.Add(ptin.Clone());
}
if (!(form.GetOutput(i) == null))
{
t[3, i].ImageAlign = ImageAlign.Center;
t[3, i].Image = images.Images[1];
t[2, i].Text = form.GetOutput(i);
t[2, i].TextFormat.Alignment = StringAlignment.Far;
al.Add(ptout.Clone());
}
t.Rows[i].AnchorPattern = new AnchorPattern(
(AnchorPoint[])al.ToArray(typeof(AnchorPoint)));
}
I only changed the number of rows in the Loop to 1 ...
Anyway ... Setting Diagram.AllowSelfLoops = false fixes also the problem of loops at the top of the table