connector shapes aren't placed correctly

M

mark.ort

Hi,

I develop a c# application with VS 2005 which uses the Visio 2003
ActivX Control.

With this application it is possible to navigate through a data
structure. The actual node is visualised via Visio.
The first time I reached a node I used the Visio Page.Layout() method
and the graph is layouted properly. Then the user should be able to
move the shapes. When the user leave the node I save the current
layout in a own structure and when the user came back later I used my
layout to build up the graph again.

This method works well for my 2d shapes. I dropped the shapes with my
saved position values. But when I drop a dynamic connector shape I
have no position Values, so I dropped them on (0,0) and then I connect
the corresponding shapes with this connector. For this I use Listing-2
on

http://www.c-sharpcorner.com/UploadFile/mgold/VisioInDotNet12032006222024PM/VisioInDotNet.aspx

Now the problem: The connector shapes aren't placed correctly. The
result differs with the ConFixedCode value of the connection shape. If
it equals 0 the connector doesn't move until I move one of the
involved shape. And if it equals 1 the shapes are connected but not
correctly until I moved one of the connected shape.

When I use the connect method in a other part in the application it
works well. I called the Page.Layout() method and then the connectors
are well drawn, but i destroys the user layout. I tried the
Application ScreenUpdating and ShowChanges property without success.
What I need is a kind of a Refresh method.

I hope someone can help me with a hint and please ask if this aren't
enough information to help.


Kind regards

Florian
 

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