Update Explorer's RibbonTab when Inspector opens

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

Update Explorer's RibbonTab when Inspector opens
 
kollanyipeter




Posts: 9
Joined: 2021-05-14
Hi,

I wrote an outlook add-in, where i would like to actualize explorer's ribbon tab (enable/disable my ribbon button), according to the selected email (there are emails, where the users can use my ribbon button and there are others, where not). I wrote code for OnOLExplorerActivate, OnOLExplorerSelectionChange and OnOLIspectorActivate to examine the selected email and change the button's enabled property according to the mail type. Seemingly it works fine. The only one exception when a mail is selected in the explorer (the button's enabled property is ok) and the user opens an other mail with double click on it in the explorer. When the other mail type is so, that i need to change the button's enabled state not just in the opened inspector, but in the explorer as well, because the selection changed. My code does it, the mail opens in the inspector and the inspector's ribbon button is ok, but the explorer's ribbon doesn't reflect the changes.

Do you have any ideas?

Regards,

Peter

PS.: I can send a sample app, if you need it.
Posted 20 May, 2021 09:09:57 Top
Andrei Smolin


Add-in Express team


Posts: 18218
Joined: 2006-05-11
Hello Péter,

kollanyipeter writes:
but the explorer's ribbon doesn't reflect the changes.


Does the ribbon refreshes if you activate the explorer window?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 May, 2021 10:55:04 Top
kollanyipeter




Posts: 9
Joined: 2021-05-14
Yes, when i activate the explorer window, it refreshes itself and sets the enabled property as needed.
Posted 20 May, 2021 11:28:12 Top
Andrei Smolin


Add-in Express team


Posts: 18218
Joined: 2006-05-11
Hello Péter,

This cannot be solved as Office refreshes only the active window.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 21 May, 2021 01:50:39 Top
kollanyipeter




Posts: 9
Joined: 2021-05-14
Thanks, but not a good news. Second issue in two weeks. :-(
Posted 21 May, 2021 02:16:56 Top
Andrei Smolin


Add-in Express team


Posts: 18218
Joined: 2006-05-11
That's Office development...

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 21 May, 2021 02:18:14 Top