• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 18. Event Handling in the Visio ... > Creating an Event Sink for Visio Obj...

Creating an Event Sink for Visio Objects

To use the event model, you first need to create a sink object if you are going to send notifications to your add-on (see Figure 18.2). Running add-ons in response to events does not require a sink object. The event sink is an instance of a class module for which you have defined the VisEventProc method. Whether you plan to send event notifications or run add-ons, you next need to get a reference to the Visio source object and hold on to it. Usually, this reference is a global variable. If your add-on releases this reference (the Object goes out of scope), event handling will cease.

Figure 18.2. Event object model flow.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint