Gluing to the Other Shape

The next step is to get a reference to either the explicit entity you want to glue to, as in the case of a connection point, or to the position we want to glue to, as in the case of the location with respect to the target SmartShape symbol. When you have the reference you need, you can then use the GlueTo or GlueToPos method of the Gluing SmartShape symbol to glue to the other SmartShape symbol.

Listing 14.1 is an example of gluing a control handle on the Position SmartShape symbol to a connection point on a Manager SmartShape symbol. This example uses a Manager and Position SmartShape symbol that I created from two rectangles. You can find the sample drawing for this on the CD-ROM that accompanies this book. Be aware ...

Get Professional Development with Visio® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.