Dynamic connectors and data graphics

Started by robert.cowham, October 09, 2013, 09:42:48 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

robert.cowham

I am trying to understand how the dynamic connector (in VS2010) handles data graphics - and how I can replicate this for my own connector.

If you apply a text data graphic to a dynamic connector, for example Middle&Center, it does the following:

- Creates a row Controls.msvDGPosition
- Creates a row Connections.msvDGPosition
- Changes the new DG text shape to reference Controls.msvDGPosition

It also sets the width of the DG Text to be a specific value (applying same DG to my shape sets it to be the width of the connector - doesn't play nicely when the width is negative!).

So how can I create a connector that behaves in the same way as the dynamic connector?

Any ideas? Or is this hard coded into Visio?

I have tried starting with a dynamic connector and modifying it, but that hasn't worked...

robert.cowham

#1
Here are pictures with and without a data graphic applied.

Note the wierd formula when DG applied - and the reference to User.msvDG1DOffsetX