View Single Post
  #9  
Old July 30th 07, 09:39 PM posted to microsoft.public.outlook.program_addins
Patrick Schmid [MVP]
external usenet poster
 
Posts: 173
Default Insert Ribbon buttons into QuickAccessToolbar problem

The QAT is modified a bit differently. If you look at the XML hierarchy,
it actually goes like this:
customUI
ribbon
qat
sharedControls
documentControls
tabs
contextualTabs
So you have to put your buttons in either the sharedControls or
documentControls section. I'd advise sharedControls always, as the other
one is not useful in Outlook.
The big catch though is that any QAT modifications are only applied if
you use startFromScratch="true" in the ribbon element. For most add-ins
this means that you have to stay away from the QAT. This is intentional,
as the QAT is supposed to be the user's space. If a user wants a
particular add-in's button on the QAT, he or she can add them her or
himself.

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Outlook 2007 Performance Update: http://pschmid.net/blog/2007/04/13/105
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://ribboncustomizer.com
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed




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

Now I'm guessing (I haven't worked with the QAT myself in code) but it's
possible you can only modify the QAT in code if you use the
startfromscratch setting, which would mean that you have to construct
everything from scratch.

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


"Christian Havel" wrote in
message ...
Hi Ken,

with the following code I tried it:

customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
loadImage="LoadImage"ribbontabstab idMso="qat" button
id="IDS_WaehlenCombo" label="Wählen" onAction="cmdCommonRibbonBttn"
getImage="GetImage" /button id="IDS_Auflegen" label="Auflegen"
onAction="cmdCommonRibbonBttn" getImage="GetImage" /button
id="IDS_Aktionen" label="Aktionen" onAction="cmdCommonRibbonBttn"
getImage="GetImage"//tab/tabs/ribbon/customUI

Outlook says that there are some problems with the button in the tab. ????
Christian


Ads