A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

IRibbonExtensibility and specific folders



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 16th 07, 10:25 PM posted to microsoft.public.outlook.program_addins,microsoft.public.win32.programmer.messaging
Michael Tissington
external usenet poster
 
Posts: 9
Default IRibbonExtensibility and specific folders

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  
Old January 16th 07, 11:03 PM posted to microsoft.public.outlook.program_addins,microsoft.public.win32.programmer.messaging
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default IRibbonExtensibility and specific folders

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  
Old January 16th 07, 11:16 PM posted to microsoft.public.outlook.program_addins,microsoft.public.win32.programmer.messaging
Michael Tissington
external usenet poster
 
Posts: 9
Default IRibbonExtensibility and specific folders

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  
Old January 17th 07, 12:18 AM posted to microsoft.public.outlook.program_addins,microsoft.public.win32.programmer.messaging
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default IRibbonExtensibility and specific folders

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  
Old January 17th 07, 12:54 AM posted to microsoft.public.outlook.program_addins,microsoft.public.win32.programmer.messaging
Patrick Schmid [MVP]
external usenet poster
 
Posts: 173
Default IRibbonExtensibility and specific folders

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 09:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.