VBA Code Behind Events for Visio Objects
Events in Visio are defined in the Visio type library. Due to this definition set, each Visio object obtains its own event list. These event lists are specific to the Visio objects with which they are associated. For example, a document has a DocumentOpened and a DocumentCreated event, while a page has a BeforeShapeDeleted event. To illustrate this, the application listed in Listing 18.1 shows an event linked to the ShapeAdded event of the document object. The code looks at the object just added and ascertains if it is a shape object, a group object, or any other type of object. If it is a shape object, it then analyzes it to be sure that it has a filled area. If so, it reports the filled area to the user ...
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.