TipOverLayout Question


Author
Message
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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
Eric Sweet
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
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
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

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
Eric Sweet
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
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search