Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Out of bounds (Read 4146 times)
gamesmeister
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 2nd, 2006
Out of bounds
Oct 18th, 2006 at 8:29pm
Print Post  
I'm using a Layered layout, and sometimes when I redraw my flowchart I get objects being drawn out of bounds of the flowchart. I've then got manually scroll to find them, and drag them back onto the chart. I think it may be linked to some of the lower tier objects having their IgnoreLayout property set to true, forcing the higher tier ones out of view.

How can I avoid them being drawn out of bounds in the first place?

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Out of bounds
Reply #1 - Oct 19th, 2006 at 6:41am
Print Post  
The layout starts arranging boxes from the upper left of the document bounds, but it won't force them to stay in the current DocExtents rectangle. Depending on the LayerDistance, the number of boxes and the chosen orientation, the last layers might get below the document area or over the right side. You can call FitDocToObjects after arranging the diagram to make sure you can scroll to the last boxes.

Stoyan
  
Back to top
 
IP Logged
 
gamesmeister
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 2nd, 2006
Re: Out of bounds
Reply #2 - Oct 19th, 2006 at 1:50pm
Print Post  
Hi Stoyo,

Thanks for the quick response.

The following is an example of my layout
1
2 3

If I lock the position of table 3 by setting IgnoreLayout to true, I sometimes get tables 1 and 2 disappearing off the top and left borders.

I am already calling FitDocToObjects.

I suspect that when this happens, it's because my objects aren't situated at the top and left of the flowchart, although they appear to be due to the FitDocToObjects. When I redraw, the non-locked ones disappear to the top left, while the locked one stays where it is, still visible. Does that sound feasible? And if so, what can I do about it?

Thanks again
Gerry
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Out of bounds
Reply #3 - Oct 19th, 2006 at 4:50pm
Print Post  
If you mean that 1&2 are not in the currently visible part of the document, but they are still within the DocExtents rectangle, you could set

fc.ScrollX = box1.BoundingRect.X;
fc.ScrollY = box1.BoundingRect.Y;

after applying the layout.

Stoyan
  
Back to top
 
IP Logged
 
gamesmeister
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 2nd, 2006
Re: Out of bounds
Reply #4 - Oct 19th, 2006 at 9:41pm
Print Post  
Ok, I'll try that thanks.

However, I've now got another issue. In the following snapshot...



...the TREATMENT table and the PAYMENT table both use the (Layered) layout, but the TREATMENT_CLAIM doesn't.

As the PAYMENT table is a child of TREATMENT_CLAIM, I was assuming that it would still be arranged below the TREATMENT_CLAIM table in the layout, but instead as can be seen in the image it repositioned itself in the first layer when I redrew the flowchart.

Is that correct, and is there anything I can do to get round it?

Btw, I'm currently running version 3.23 if that makes any difference

Thanks again
Gerry
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Out of bounds
Reply #5 - Oct 20th, 2006 at 5:28am
Print Post  
If TREATMENT_CLAIM.IgnoreLayout == true, the layout function will process TREATMENT and PAYMENT as two unrelated sub-graphs. Such sub-graphs are just placed in a row one next to the other, and the relation between TREATMENT_CLAIM and the other nodes is ignored.

Stoyan
  
Back to top
 
IP Logged
 
gamesmeister
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 14
Joined: Aug 2nd, 2006
Re: Out of bounds
Reply #6 - Oct 20th, 2006 at 6:20pm
Print Post  
Ok, not such good news Sad

Is there any way I can lock the position of a node so it doesn't move following a call to Arrange, but still keep it within the Layout so other nodes recognise it?

Basically the problem I have is that I need to call Arrange whenever a user adds a Node, because of requirements I have with regards to expanding a single Node into multiple Nodes, and contracting multipe Nodes back into a single Node (rather like placing the nodes into a group, and then minimising the group). However, my users also want to be able to move nodes to a certain position on the flowchart, and lock them into place there.

Is there any way I can do both with the current version of the tool?

Many thanks
Gerry
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Out of bounds
Reply #7 - Oct 23rd, 2006 at 6:43am
Print Post  
You cannot do that at this time. We can add to the next version a "bool LayoutLocked" property  to let you lock items that way (or we'll make IgnoreLayout an enumeration). That will work for the simulation-based algorithms, e.g. Spring/Anneal/Grid, but I'm not sure if that will be possible for the Tree and Layered ones.

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