Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ArrowAnchoring (Read 2187 times)
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
ArrowAnchoring
Sep 5th, 2008 at 2:58pm
Print Post  
Hi,

I'm evaluating FCX for a project I'm working on to create a GUI for workflow processes generated by our software.

I've just had a little play and have created a simple diagram with a 'Decision' box and 2 rectangular boxes. I've added arrows to the 'red' node and the 'green' node on the decision box and connected them to the 2 rectangular boxes.

Nothing clever so far.

I've added a button to the form to force a call to 'ArrangeDiagram' using a TreeLayout. As you can see below I'm explicitly setting the ArrowAnchoring property to 'ancKeep' but when I press the button the chart redraws with BOTH arrows coming out of the bottom (green) node of the decision box.

Is this a bug? Am I doing it wrong?

Code
Select All
procedure TForm1.btnRearrangeAsTreeClick(Sender: TObject);
var
  tl : TreeLayout;
begin
  tl := CreateCOMObject(CLASS_TreeLayout) as TreeLayout;
  tl.NodeSpacing := 100;
  tl.LevelSpacing := 100;
  tl.ArrowAnchoring := ancKeep;
  FlowChart1.ArrangeDiagram(tl);
end; 



--
Stuart
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ArrowAnchoring
Reply #1 - Sep 8th, 2008 at 7:24am
Print Post  
Hi,

ancKeep specifies that ArrangeDiagram should preserve to which points of nodes' AnchorPattern links connect. Are you sure your links are connected to any anchor points prior to running the layout function?

Stoyan
  
Back to top
 
IP Logged
 
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
Re: ArrowAnchoring
Reply #2 - Sep 8th, 2008 at 8:26am
Print Post  
It must have been a Friday afternoon problem, 'cos I can't get it to happen now! Roll Eyes

Sorry to have bothered you.
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ArrowAnchoring
Reply #3 - Sep 8th, 2008 at 8:32am
Print Post  
8)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint