Handling command buttons in multiple Outlook windows

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

Handling command buttons in multiple Outlook windows
 
mailstore.com


Guest


Hi,

we developed an Outlook add in to access the web access of our server application using the integrated web browser. The addin includes some command bar buttons that are enabled if the user navigates to the start page of the web access and are disabled if the user returns to any other Outlook folder. This works perfectly while only a single Outlook window is used.

If you need to access our addin and your inbox at the same time any user would easily open his inbox in a new window. At this point the addin starts to act strangely. The add in ribbon is available in both windows. If I select the window with the inbox the command bar buttons for the addin are disabled as the target for the commands (the integrated web browser) is not available in this window. This alone would be great but unfortunately the buttons are disabled in all Outlook windows. Therefore our add in can no longer be used in the first Outlook window and we need to navigate back to the start page of the add in to reenable the command bar buttons.

Is there a way to use separated instances of the buttons for each window and just disable the buttons for the windows that are not accessing our add in backend?

Kind regards

Kay Zumbusch
Posted 28 Dec, 2016 08:23:25 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Kay,

You need to study section Updating Ribbon Controls at Run Time, see the PDF file in the folder {Add-in Express}\Docs on your development PC. This section is also available on our web site; see https://www.add-in-express.com/docs/net-ribbon-components.php#properties-events.


Andrei Smolin
Add-in Express Team Leader
Posted 28 Dec, 2016 08:37:35 Top
mailstore.com


Guest


Hi Andrei,

thanks a lot. Works like a charm.

Kind regards

Kay Zumbusch
Posted 28 Dec, 2016 09:00:47 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
You are welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 29 Dec, 2016 03:56:01 Top