Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic There's no escape... (Read 2352 times)
Stuart
Junior Member
**
Offline


Short, fat and bald, that's
me.

Posts: 64
Location: Lincs, UK
Joined: Sep 5th, 2008
There's no escape...
Jan 14th, 2009 at 5:36pm
Print Post  
... you keep helping and I'll keep asking questions. Grin

So, here's the problem.

The TreeLayout object does it's best to keep nodes as close together as it thinks it should. My flows after make an 'early' reference to the end terminator and so the layout class often puts it quite high in the diagram. I've created a simple example for you to see here and this is what I'd like it to look like.

Now, I figure the best way to do this is to let the Layout class do its thing, them move my end terminator node so that it's vertically in line with the start terminator and below the bottom-most nodes in the chart then call RouteAll to redraw the links.

Obviously, to get the lowest nodes in the diagram I'm going to have to go through them all and test 'em. I could do that, but then I thought, I wonder if I can find out what the height of the document is after calling FitDocToObjects and use that value.

So, Can I access the document metrics to get the height?
  

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: There's no escape...
Reply #1 - Jan 15th, 2009 at 9:22am
Print Post  
Smiley try the GetDocSize method.

I hope that helps,
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: There's no escape...
Reply #2 - Jan 15th, 2009 at 9:56am
Print Post  
Quote:
try the GetDocSize method

Indeed it does.

I don't know why I'm having so much trouble finding stuff in the help file!
  

-- &&Stuart
Back to top
YIM  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint