O'Reilly logo

Professional Development with Visio® 2000 by David Edson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required