Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic arrows overlaping (Read 1886 times)
KBalquis
YaBB Newbies
*
Offline


Senior developer

Posts: 12
Joined: Nov 19th, 2007
arrows overlaping
Nov 30th, 2007 at 10:46am
Print Post  
Hello, I am using the code below to draw boxes and arrows connecting these boxes,
"
       If lReader.HasRows Then
           While lReader.Read
               box = Nothing
               box1 = Nothing
               For j As Integer = 0 To i - 1
                   If wfGraph.Boxes(j).Tag = lReader("Fr") Then
                       box = wfGraph.Boxes(j)
                   End If

                   If wfGraph.Boxes(j).Tag = lReader("To") Then
                       box1 = wfGraph.Boxes(j)
                   End If
               Next j

               arrw = wfGraph.CreateArrow(box, box1)

               arrw.AutoRoute = True
               arrw.Text = "My arrow text"
           End While
       End If
"

If 2 boxes have arrows coming in and out from each other (i.e. box 1 connects to box 2 and box 2 connects to box 1) the arrows are overlapping and their text is not obvious, is there anyway  to resolve this??
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: arrows overlaping
Reply #1 - Nov 30th, 2007 at 12:52pm
Print Post  
There isn't any built-in method available yet to detect and separate overlapping arrow labels. You could separate the arrows themselves when you detect multiple connections between the same boxes. E.g. offset one of the arrows to the left, and the other one to the right by setting new point coordinates in the arrow.ControlPoints collection.

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