![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I have implemented IRibbonExtensibility but how can I only load the ribbon
when the Outlook form is from a specific folder or message class (we have an ECE that does this for pre 2007) The RibbonID does not seem to reflect the actual message class. |
Ads |
#2
|
|||
|
|||
![]()
If I remember correctly, you should be able to specify the ribbon visiblity
callback, which will be called each time a ribbon is shown. You might want to post in microsoft.public.outlook.program_addins and/or microsoft.public.developer.outlook.addins. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Michael Tissington" wrote in message ... I have implemented IRibbonExtensibility but how can I only load the ribbon when the Outlook form is from a specific folder or message class (we have an ECE that does this for pre 2007) The RibbonID does not seem to reflect the actual message class. |
#3
|
|||
|
|||
![]()
Thanks, have you been able to connect your ece to the class containing the
ribbon code ? "Dmitry Streblechenko" wrote in message ... If I remember correctly, you should be able to specify the ribbon visiblity callback, which will be called each time a ribbon is shown. You might want to post in microsoft.public.outlook.program_addins and/or microsoft.public.developer.outlook.addins. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Michael Tissington" wrote in message ... I have implemented IRibbonExtensibility but how can I only load the ribbon when the Outlook form is from a specific folder or message class (we have an ECE that does this for pre 2007) The RibbonID does not seem to reflect the actual message class. |
#4
|
|||
|
|||
![]()
I simply created a simply separate class for the COM add-in and communicates
with ECE using global variables. In case of OutlookSpy the ribbon hanling is very simple - it is always shown no matter what :-) I did ribbon related functionality for several other add-ins, but there the show/hide ribbon logic was based on the sent/unsent state of the item. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Michael Tissington" wrote in message ... Thanks, have you been able to connect your ece to the class containing the ribbon code ? "Dmitry Streblechenko" wrote in message ... If I remember correctly, you should be able to specify the ribbon visiblity callback, which will be called each time a ribbon is shown. You might want to post in microsoft.public.outlook.program_addins and/or microsoft.public.developer.outlook.addins. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Michael Tissington" wrote in message ... I have implemented IRibbonExtensibility but how can I only load the ribbon when the Outlook form is from a specific folder or message class (we have an ECE that does this for pre 2007) The RibbonID does not seem to reflect the actual message class. |
#5
|
|||
|
|||
![]()
You can use the RibbonID though to narrow it already down. That means,
only send your RibbonX back to Outlook via GetCustomUI for those RibbonIDs that could be used for your message class. Then implement getVisible and getEnabled callbacks for your top-level item (tab or group). When getVisible/getEnabled get called, you get an IRibbonControl object that has a Context properties. You can use that Context property to get a handle to the current Inspector and from there figure out your message class. If it's the right message class, return true, otherwise return false. Why getVisible and getEnabled? Ribbon items that are not visible are nonetheless included in the Options, Customize dialog. So a user could potentially add any of those not available items to his or her QAT and then call them when he or she shouldn't be able to call them. Therefore you need to disable them as well. You'll have to implement an Outlook event though to invalidate your top-level control whenever you want to change the two attributes. Patrick Schmid [OneNote MVP] -------------- http://pschmid.net *** Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80 Office 2007 Beta 2 Technical Refresh (B2TR): http://pschmid.net/blog/2006/09/18/43 *** Customize Office 2007: http://pschmid.net/office2007/customize RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer OneNote 2007: http://pschmid.net/office2007/onenote *** Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed "Michael Tissington" wrote in message : I have implemented IRibbonExtensibility but how can I only load the ribbon when the Outlook form is from a specific folder or message class (we have an ECE that does this for pre 2007) The RibbonID does not seem to reflect the actual message class. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
sharing specific calendars with specific people. | Snyder | Outlook - Calandaring | 2 | October 31st 06 06:03 PM |
Automatically send or copy outgoing messages to specific folders | carlo | Outlook Express | 1 | August 2nd 06 04:30 PM |
Outlook2003: Specific follow up flags in search folders? | [email protected] | Outlook - General Queries | 2 | May 8th 06 06:03 PM |
Enforce Specific Encoding To Messages Arrived From Specific Addres | Gil | Outlook and VBA | 3 | April 26th 06 03:00 PM |
Moving Specific Inbox Items to a Specific Subfolder (VBA) | DevDaniel | Outlook and VBA | 1 | April 11th 06 05:46 AM |