Profile Picture

TipOverLayout Question

Posted By Eric Sweet 14 Years Ago
Author
Message
Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi,

Text cannot be rotated, but shapes can, so when you need rotated text I suggest you use composite shapes and just rotate the primitive which holds the text you want rotated.



Best Regards,
Nevron Support Team



Eric Sweet
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 14, Visits: 1
That works perfectly, thanks! Layout problem solved.

Any suggestions on the other question, how to rotate text in a table shape 90 degrees?

Thanks,
Eric

Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi,

For finer control over the way the nodes are layouted you can use the LayoutData of each shape. Just set the LayoutData.TipOverChildrenPlacement to the value you need.



Best Regards,
Nevron Support Team



Eric Sweet
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)Junior Member (14 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 14, Visits: 1
Hi,

I'm using the diagram component to produce org charts from a database, and overall it's working well. One issue I'm having however, is in trying to keep the chart as compact as possible, horizontally. In most cases setting the diagram's layout to tipover with the following code works fine, producing vertically oriented trees:

tipOverLayout.LeafsPlacement = TipOverChildrenPlacement.ColRight

For some sub-organizations however, the result is too horizontal. The situation arises when you have a department where some, but not all of the staff have employees assigned. For example:

Manager
Resource1
Resource2
Resource3
Resource3a
Resource3b
Resource4

In this case what I need is pretty much what you see above, but what is produced is a sub-tree where all the resources are arrayed horizontally instead of vertically, with the Resource3a and 3b vertically beneath their parent node.

Basically I want to apply
tipOverLayout.ChildrenPlacement = TipOverChildrenPlacement.ColRight
but only to sub-trees that have a mix of childless and parent sub-nodes. I can't figure out how to do this either in code or from the commandbars interface. Is it at all possible?

Also, I'm using NTableShapes to display the nodes, and would like some of the cells to display the text rotated 90 degrees, is there a way to do this?

Thanks!
Eric



Similar Topics


Reading This Topic