event for upading ribbon before show

Add-in Express™ Support Service
That's what is more important than anything else

event for upading ribbon before show
 
Ivan Petrovic




Posts: 11
Joined: 2011-11-15
Hello,

We are using TadxRibbonTab component for Outlook plugin. There are some options in this Ribbon that can be changed via external application, but changes are directly proapaged to registry.

For example with Open Outlook click on New mail, ribobn correclty loades all data from registry.

We close new message window and do some changes in registry by some other application.

Then we click New mail again and there is no event for us to refresh settings on ribbon depending on registry.

We tried addin.onRibbonCreate, addin.onribbonLoaded, we tried adxribbontab.onpropertychaning but most of those components execute only on first launch of "New message" or at outlook startup.

Is there any event that is executed on every "New message" action in Outlook

or even better before clicking on our custom tab in "New message" window?

Thanks,

Ivan
Posted 26 Jan, 2012 05:33:51 Top
Andrei Smolin


Add-in Express team


Posts: 18794
Joined: 2006-05-11
Hello Ivan,

You need to use the OnOlInspectorActivate event. Note that Ribbon controls cannot be created on the fly. To imitate some dynamism, you can modify the visibility of pre-created Ribbon controls.


Andrei Smolin
Add-in Express Team Leader
Posted 26 Jan, 2012 10:23:01 Top
Ivan Petrovic




Posts: 11
Joined: 2011-11-15
Thanks Andrei,

Works as it should
Posted 26 Jan, 2012 10:43:48 Top