Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrance FlowChart (Read 3664 times)
Cliven
Guest


Arrance FlowChart
Jan 9th, 2006 at 6:58am
Print Post  
Dear Sir/Madam

How do I change the arrow style without using TreeView.Arrange(FC).
I just want to change the arrow style without reset my nodes location.
I know that we can set the arrow.ControlPoints to move the correct location for the arrow. but this is not a good ideas  Undecided, cause we need to write different style with different direction and type. why do you provide a function to change all those arrow style with correct position?

Thank & Best Regard
Cliven
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrance FlowChart
Reply #1 - Jan 9th, 2006 at 9:22am
Print Post  
Dear Cliven,

Use arrow.Style and arrow.SegmentCount to set the arrow style. The TreeLayout aligns arrow points to center them relatively to the arrows's adjacent nodes, so you can just align the coordinates in arrow.ControlPoints to the node centers.

The TreeLayout does not provide a separate method to change only the arrow style, because that kind of alignment only makes sense when the nodes are arranged by the TreeLayout too.

Best regards,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrance FlowChart
Reply #2 - Jan 9th, 2006 at 9:33am
Print Post  
Dear Cliven,

After the TreeLayout arranges the nodes, it call this method for each arrow in the tree to set its style and align it control points:


You can exract the code to set the style and position of arrows from it according to the TreeLayout arrow style.

Best regards,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrance FlowChart
Reply #3 - Jan 9th, 2006 at 9:34am
Print Post  
Ok, it seems the code is too long and the forums software does not accept it, I will email it to you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint