Master shapes: control handles and glue points 
Author Message
 Master shapes: control handles and glue points


i implement Visio in a MFC program using automation. The program should
create an organization chart. Because the shapes are user-defined, they are
created at runtime by the MFC application. The default shapes for org.
charts aren't used! The problem is now to connect the shapes, after they
were dropped to the page. At the momemt i use a additional 1-D-shape, which
only contains a _normal_ line. This works, but the connections are direct
and not offsetted, as they should look if you use the connection tool.

When i tried to use the connection tool, i can't find anything about it. Can
anybody tell me, how to access the connection tool? VB code is also welcome.

I don't know if my way to create an own organization chart is the best one -
but it's the only one i know. In the MS Press book "Developing MS Visio
Solutions" i read something about control handles, but i didn't find enough
information to work with them. Are control handles the way, MS had created
their default shapes with?

Now some lines from the mentioned book, and a picture (as attachment)
referring to this text:

[Chapter 19, page 396]
Another method for gluing one object to another is to create a master with a
control handle that extends a line you can glue to another shape. As an
example, the following illustration contains a shape that has a control
handle that can be glued to another shape. The shape also has four named
connection points, locations to which other shapes can be glued. The cell
references you would use to glue these locations are shown in the following

If anybody can help me with hints, or code snippets in VB or VC, your reply
is very welcome.

Thanks to you and a nice weekend,

On e-mail replies, please add "mpvdvba" to the subject!

Tue, 18 Oct 2005 23:27:55 GMT  
 [ 1 post ] 

 Relevant Pages 

1. How to update document master shapes from template master shapes

2. Stuck on gluing shapes

3. Adding Control Handles to a shape with automation

4. dropping a master into a shape and having the master change it's size of the shape.

5. How to manage master shapes?

6. Can Not Access or Set Properties of Master Shape

7. Checking Shape's Master Name

8. Getting shape instances of a master

9. How to detect an instance of a shape that was changed from its master in Visio5

10. Need Advice w/ Master Shape

11. shape with no master

12. What does Master.Shapes refer to?


Powered by phpBB® Forum Software