COM Add-in

B

Brian

I'm wanting to call function (or make it run) within my COM Add-in. I can see where I can do this in a cell formula by firing a marker event with either QueueMarkerEvent or RunAddonWArgs but is there a way to do this from automation? My app wraps around the drawing control and my Add-in succesfully loads. I want a button click to call a function within the add-in to turn on and off a custom window

Thanks
Brian
 
C

Chris Roth [ Visio MVP ]

Same function as the ShapeSheet in this case. You just use automation to
throw an event:

visio.Application.QueueMarkerEvent("Brian Wuz Here")

The ContextString in your _MarkerEvent proc will come strolling along with
"Brian Wuz Here" shortly thereafter.

--

Hope this helps,

Chris Roth
Visio MVP


Brian said:
I'm wanting to call function (or make it run) within my COM Add-in. I can
see where I can do this in a cell formula by firing a marker event with
either QueueMarkerEvent or RunAddonWArgs but is there a way to do this from
automation? My app wraps around the drawing control and my Add-in
succesfully loads. I want a button click to call a function within the
add-in to turn on and off a custom window.
 
B

Brian

Is this the most efficient way to do this? It seems that my code is getting hammered with event calls. I am filtering them out but it seems my app has slowed down. Or, is there a way to filter this on the calling side so that my Add-in doesn't have to get all of this extra noise

Much Thanks
Brian
 
C

Chris Roth [ Visio MVP ]

Good call - check in the help file for Event filters.

--

Hope this helps,

Chris Roth
Visio MVP


Brian said:
Is this the most efficient way to do this? It seems that my code is
getting hammered with event calls. I am filtering them out but it seems my
app has slowed down. Or, is there a way to filter this on the calling side
so that my Add-in doesn't have to get all of this extra noise?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top