View Single Post
  #2  
Old November 27th 06, 11:11 AM posted to microsoft.public.outlook.program_forms
Nikolas
external usenet poster
 
Posts: 34
Default multiple ribbons with the same ribbonID

Hi Ken,

Thanks for your suggestion (created two custom groups in the ribbon and I
toggle their visibility). Everything looked to work fine apart from an issue
with the refresh of the Ribbon. It looks like the Ribbon doesn't refresh
everytime a new inspector (of the same type (ex. Mail.Compose) is created and
displayed. I put a breakpoint in the callback functions that determine the
visibility of the buttons in the custom Ribbon groups (depending on the
Message Class of the Mail Item) and randomly ignores some calls. I tried
putting calls of the function InvalidateControl("MyRibbonGroupName") to the
function that creates the Inspector but this didnt solve my problem.

Any suggestions would appreciated.

Nikolas

"Ken Slovak - [MVP - Outlook]" wrote:

The XML is loaded only once per each Inspector type (Mail.Compose,
Mail.Read, etc.).

Your choices probably boil down to creating a huge ribbon with everything
you want everywhere and making various controls visible and invisible
depending on the Inspector, or using one or more dynamicMenu setups where
the XML would be loaded each time and supplied on the fly.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Nikolas" wrote in message
news
Hi,

is it possible to have different Ribbons on an Outlook mail item depending
on their message class? I see that the Ribbon is loaded only once when a
mail
item is loaded the first time. Whenever you load another mail item the
ribbon
stays the same and it just invalidates the controls.

My aim is to have a custom group in different positions on the ribbon
depending on the message class of the mail item.

Thanks in advance



Ads