Line connector issues

I am using version 6.2 of the Diagram control in VB (Windows Forms version).

I am having some issues with the line connectors between two rectangles. When I create an ortogonal connector, it joins the two central points as expected, with the line beginning at the rectangle's edge.

However, if I begin moving (dragging) one of the rectangles around the model, the line connector tends to get redrawn incorrectly and will originate from the actual central point (and obscuring text within the rectangle), rather than beginning at the rectangle's edge.

I've attached a sample image so you can see the behaviour I am experiencing.

Is this a bug, or do I need to code some workaround or set some property in order to fix the problem?

Thank you



untitled_b0d95ae8.zip

3 Replies

J. J.Nagarajan Syncfusion Team June 3, 2008 06:33 AM UTC

Hi Mark ,

You can resolve this issue by sending the connector to back of the connected nodes. Please use the below code snippet.

OrthogonalConnector line = new OrthogonalConnector(m_rect.PinPoint, m_rect1.PinPoint);
this.diagram1.Model.AppendChild(line);
m_rect.CentralPort.TryConnect(line.HeadEndPoint);
m_rect1.CentralPort.TryConnect(line.TailEndPoint);
this.diagram1.Model.SendToBack(line);

Please refer to the attached sample for more details.

http://websamples.syncfusion.com/samples/Diagram.Windows/F74164/main.htm

Let me know if this helps.

Regards,
Nagaraj



MA Mark Attridge June 3, 2008 02:36 PM UTC

Thanks for the sample code. It does work better for me now.

However, I can still reproduce one case where the connector is not drawn properly, as it becomes obscured by the rectangle.

I've attached another screen shot with a sample of what I'm seeing.

Can this be considered a bug? Or is there another property I need to set on the orthogonal connector to make it connect properly?

Thanks so much.



untitled2_ea6f4df4.zip


J. J.Nagarajan Syncfusion Team June 4, 2008 04:18 AM UTC

Hi Mark ,

I have tested this issue in our latest version and it seems to be a bug. We have logged defect report in this regard and forwarded this issue to our developers for more analysis. I will get back to you with more details regarding this issue on or before June 6th 2008.

Thanks for your patience.

Regards,
Nagaraj


Loader.
Up arrow icon