Tree layout

S

Sergey Zamansky

Hi,
I use Visio 2003 ActiveX in order to create C++ application for automatic
drawing flowcharts/trees like organization chart. The application user may
change the chart layout style from top->bottom to left->right and
contrariwise. I need to keep relative positions of siblings while tree
layout. For example, a tree consists of root shape 'A' connected with
dynamic connectors to two child shapes 'B' and 'C'. Constant relative
position means that after multiple tree layouts:
1. 'B' is always on the left of 'C' for top->bottom layout and
2. 'B' is always lower than 'C' for left->right layout .
However, Visio change relative positions of siblings during layouts!

Is there a way to keep relative positions of siblings during tree layout?

Thank you in advance,
Sergey.
 
M

Mark Nelson [MS]

The simple answer is no, Visio's layout engine does not maintain the
relative order / position of siblings. You would need to write code to
perform the layout yourself or do some sort of position swapping.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top