Crainiate Community

Support and discussion for users of Crainiate component software products
Welcome to Crainiate Community Sign in | Join | Help
in Search

HierarchicalLayout

Last post 08-06-2007 6:26 PM by James Westgate. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 08-01-2007 8:22 PM

    HierarchicalLayout

    We really need to get the horizontal lines to match up.  How can this be done?

     Thanks. -jv

    • 63.239.234.201
  • 08-01-2007 10:17 PM In reply to

    Re: HierarchicalLayout

    Can you please post a screenshot or some code or give us a bit more detail to work with? - thanks.

    Filed under:
    • 86.155.94.155
  • 08-02-2007 1:28 PM In reply to

    Re: HierarchicalLayout

    Here is a screen you can look at.

     http://i192.photobucket.com/albums/z52/voigtboy/layoutLineIssue.jpg

    Look at the red circles.... those areas should all have the same line positioning..

     

    Filed under:
    • 63.239.234.201
  • 08-02-2007 7:32 PM In reply to

    Re: HierarchicalLayout

    Many thanks. This is a problem with using connectors for charts such as this - you have two options

    1. Use normal links (Link class) instead.

    2. Below each item in the org chart that has multiple children, place an invisible small shape that you connect one connector to, then connect the rest of your connectors to the hidden shape. You can set DrawBorder to false to make this easier. I havent tried a shape 1x1 pixel but you will need to set the MinimumSize property to 1,1 first.

     In version 5, connectors will have waypoints which will solve this issue. V5 has been delayed to first quarter 2008 to coincide with the vs 2008 release.

    Filed under:
    • 86.155.94.155
  • 08-03-2007 3:05 PM In reply to

    Re: HierarchicalLayout

    Doing (#1) will just make them straight lines though correct?  (without the joints)?

    Doing (#2) I'm not fully understanding...

    I was thinking it may be easier for me to write an algorithm to go through all of the connectors and force them to be on the same Y location for each of the branches.  I'm trying to figure out what object(s) I would need to manipulate though to get access to those positions.  I'm guessing it would be the model.Lines and their Ports?  If so I'm not sure what property I would use to manipulate that Y location.  Is this idea possible? 

    Thanks, -jv

    • 63.239.234.201
  • 08-06-2007 6:26 PM In reply to

    Re: HierarchicalLayout

    Yes, #1 will just be straight lines, so not fully like an org chart.

    You should be able to manipulate the connector by changing the Connector.Points collection. Once you have changes the values in the Points collection, you will need to call Connector.DrawPath and then Invalidate the diagram by calling Model/Diagram.Invalidate

     Let me know if you need further help.

     

    Filed under: ,
    • 86.155.94.155
Page 1 of 1 (6 items)