Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Table resize and OrgnIndex (Read 5662 times)
baron
YaBB Newbies
*
Offline


1001001001

Posts: 42
Joined: Dec 2nd, 2007
Table resize and OrgnIndex
Mar 6th, 2008 at 7:04pm
Print Post  
I'm having problems with arrows linked to specific rows in tables when I resize and then layout the tables. If the arrows origin is a row that is no longer visible then it starts at the last row that IS visible which is good, but when I layout the table and then resize the table back to its full size, the arrows don't go back to start at the correct row.

I checked and the OrgnIndex is still set correctly, it just doesn't move the origin point back to its place anymore.

So answers to any/all ofthe following questions could help:

1. Is there any way to avoid having the layout mess up the arrows

2. Is there any way to tell the arrows to go back to 'normal' manually after I resize the table back to full-length. I can't change the orgnindex right.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Table resize and OrgnIndex
Reply #1 - Mar 6th, 2008 at 7:22pm
Print Post  
Could you post here the code you are using to apply the layout?
  
Back to top
 
IP Logged
 
baron
YaBB Newbies
*
Offline


1001001001

Posts: 42
Joined: Dec 2nd, 2007
Re: Table resize and OrgnIndex
Reply #2 - Mar 6th, 2008 at 7:36pm
Print Post  
I forgot to mention that I'm on version 4.1.4

OK I found the cause of the problem in my layouting code. I am setting all the arrows to asHRigid in order to workaround the following bug:
http://mindfusion.eu/Forum/YaBB.pl?board=fcx_brep;action=display;num=1196612468

Rerouting all the arrows was too slow so I found that if I set the arrows to asHRigid the layout resets the weird arrows.

I could remove this code for tables but this isn't ideal unless there is another workaround (or a workaround for the workaround Wink ).
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Table resize and OrgnIndex
Reply #3 - Mar 6th, 2008 at 7:51pm
Print Post  
What happens if you reset the style back to Polyline, after setting it to Rigid?
  
Back to top
 
IP Logged
 
baron
YaBB Newbies
*
Offline


1001001001

Posts: 42
Joined: Dec 2nd, 2007
Re: Table resize and OrgnIndex
Reply #4 - Mar 6th, 2008 at 8:03pm
Print Post  
You mean like this?

    For i = 0 To Chart.Arrows.Count - 1 ' workaround for convoluted arrow paths from previous layouts (layered/grid)
      Chart.Arrows(i).style = asHRigid
      Chart.Arrows(i).style = asPolyline
    Next i

The table arrows don't behave as they should. Only if I comment out the code does it work.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Table resize and OrgnIndex
Reply #5 - Mar 7th, 2008 at 7:49am
Print Post  
I've just tried the tree-layout with a scrollable table, and this looks like a bad bug Sad Our developer will try to fix it next week.

Stoyan
  
Back to top
 
IP Logged
 
baron
YaBB Newbies
*
Offline


1001001001

Posts: 42
Joined: Dec 2nd, 2007
Re: Table resize and OrgnIndex
Reply #6 - Mar 9th, 2008 at 9:13pm
Print Post  
Great Smiley Will this also fix the switching between layouts bug I posted before?

Only problem is I don't think we bought an upgrade license...   Embarrassed
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Table resize and OrgnIndex
Reply #7 - Mar 10th, 2008 at 2:58pm
Print Post  
Hi,

We'll fix the layout issues too, and send you the updated version anyway.

Stoyan
  
Back to top
 
IP Logged
 
baron
YaBB Newbies
*
Offline


1001001001

Posts: 42
Joined: Dec 2nd, 2007
Re: Table resize and OrgnIndex
Reply #8 - Mar 11th, 2008 at 2:19am
Print Post  
Much appreciated!

Just to give you more information on the switching layout issues:

The picture I posted happens when switching from EITHER layered or grid layouts TO tree layouts. The workaround I use for this is to change all the arrows to asHRigid.

There is also a problem sometimes when switching from tree layouts to Grid or Spring (the arrows again don't behave as they should). I workaround this by changing them all to asPolyline.
  
Back to top
 
IP Logged
 
baron
YaBB Newbies
*
Offline


1001001001

Posts: 42
Joined: Dec 2nd, 2007
Re: Table resize and OrgnIndex
Reply #9 - Apr 8th, 2008 at 8:48pm
Print Post  
Were these issues fixed in 4.1.5?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Table resize and OrgnIndex
Reply #10 - Apr 9th, 2008 at 10:28am
Print Post  
TreeLayout still ignores arrows that are not in the tree. The scrollable tables and the other layouts should work better now.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint