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

Extend Default Ribbon



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 5th 07, 02:00 PM posted to microsoft.public.outlook.program_addins
Christian Havel
external usenet poster
 
Posts: 43
Default Extend Default Ribbon

Hi,

I need the ids to add buttons to the Ribbon on the tab "Messages" (in german
"Nachrichten"). Can anybody give me a tip?

Thanks Christian
Ads
  #2  
Old July 5th 07, 02:38 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Extend Default Ribbon

Do you mean the "Message" tab? That's "TabNewMailMessage" for a new email
item and "TabReadMessage" for messages that are being read.

There's a download of all the XML tags for every type of Outlook ribbon and
for the ribbons for every other Office application at
http://www.microsoft.com/downloads/d...displaylang=en

You can add your own Group to a tab such as Message, you can't add your own
ribbon controls to existing Groups within a tab. You create your ribbon UI
controls within the Group you add to the tab.

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

I need the ids to add buttons to the Ribbon on the tab "Messages" (in
german
"Nachrichten"). Can anybody give me a tip?

Thanks Christian


  #3  
Old July 5th 07, 03:28 PM posted to microsoft.public.outlook.program_addins
Christian Havel
external usenet poster
 
Posts: 43
Default Extend Default Ribbon

Hi Ken,

I try with the following Xml to add my group to the exisiting tab.

strDescription = "customUI
xmlns=""http://schemas.microsoft.com/office/2006/01/customui""
loadImage=""LoadImage""" & _
"ribbon" & _
"tabs" & _
"tab id=""TabReadMessage"" label=""MyMessage""" & _
"group id=""c4bBrand"" label=""" & g_product & """" & _
"button id=""IDS_WaehlenCombo"" label=""" &
GetCheckedResString(IDS_WaehlenCombo) & """ onAction=""cmdCommonRibbonBttn""
getImage=""GetImage"" /" & _
"button id=""IDS_Auflegen"" label=""" &
GetCheckedResString(IDS_Auflegen) & """ onAction=""cmdCommonRibbonBttn""
getImage=""GetImage"" /" & _
"button id=""IDS_Aktionen"" label=""" &
GetCheckedResString(IDS_Aktionen) & """ onAction=""cmdCommonRibbonBttn""
getImage=""GetImage""/" & _
"/group" & _
"/tab" & _
"/tabs" & _
"contextualTabs" & _
"tabSet idMso=""TabSetTableTools"" visible=""false""/tabSet" & _
"/contextualTabs" & _
"/ribbon" & _
"/customUI"

It creates a new group. Do you see my failure?

Thanks
Christian

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

Do you mean the "Message" tab? That's "TabNewMailMessage" for a new email
item and "TabReadMessage" for messages that are being read.

There's a download of all the XML tags for every type of Outlook ribbon and
for the ribbons for every other Office application at
http://www.microsoft.com/downloads/d...displaylang=en

You can add your own Group to a tab such as Message, you can't add your own
ribbon controls to existing Groups within a tab. You create your ribbon UI
controls within the Group you add to the tab.

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

I need the ids to add buttons to the Ribbon on the tab "Messages" (in
german
"Nachrichten"). Can anybody give me a tip?

Thanks Christian



  #4  
Old July 5th 07, 03:34 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Extend Default Ribbon

I doubt that the XML can use a procedure to create a fixed label, which is
what you are trying to do. I'd use getLabel instead and pass back the
formulated label text in that callback.

Also, if your onAction callbacks are calling the same procedures as the
click event handlers for buttons, as it appears, that's a problem. The click
handlers would require a CommandBarButton object passed to them. What I do
when I use code that shares the same functionality for buttons and ribbon
controls is have both call a procedure that doesn't rely on a
CommandBarButton object as a Click event would.

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

I try with the following Xml to add my group to the exisiting tab.

strDescription = "customUI
xmlns=""http://schemas.microsoft.com/office/2006/01/customui""
loadImage=""LoadImage""" & _
"ribbon" & _
"tabs" & _
"tab id=""TabReadMessage"" label=""MyMessage""" & _
"group id=""c4bBrand"" label=""" & g_product & """" & _
"button id=""IDS_WaehlenCombo"" label=""" &
GetCheckedResString(IDS_WaehlenCombo) & """
onAction=""cmdCommonRibbonBttn""
getImage=""GetImage"" /" & _
"button id=""IDS_Auflegen"" label=""" &
GetCheckedResString(IDS_Auflegen) & """ onAction=""cmdCommonRibbonBttn""
getImage=""GetImage"" /" & _
"button id=""IDS_Aktionen"" label=""" &
GetCheckedResString(IDS_Aktionen) & """ onAction=""cmdCommonRibbonBttn""
getImage=""GetImage""/" & _
"/group" & _
"/tab" & _
"/tabs" & _
"contextualTabs" & _
"tabSet idMso=""TabSetTableTools"" visible=""false""/tabSet"
& _
"/contextualTabs" & _
"/ribbon" & _
"/customUI"

It creates a new group. Do you see my failure?

Thanks
Christian


  #5  
Old July 5th 07, 03:52 PM posted to microsoft.public.outlook.program_addins
Christian Havel
external usenet poster
 
Posts: 43
Default Extend Default Ribbon

The COMAddIn works fine with the code. I only want to insert the group into
the tab "TabReadMessage". Outlook creates me a new tab. Do you have any idea
what I do wrong?

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

I doubt that the XML can use a procedure to create a fixed label, which is
what you are trying to do. I'd use getLabel instead and pass back the
formulated label text in that callback.

Also, if your onAction callbacks are calling the same procedures as the
click event handlers for buttons, as it appears, that's a problem. The click
handlers would require a CommandBarButton object passed to them. What I do
when I use code that shares the same functionality for buttons and ribbon
controls is have both call a procedure that doesn't rely on a
CommandBarButton object as a Click event would.

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

I try with the following Xml to add my group to the exisiting tab.

strDescription = "customUI
xmlns=""http://schemas.microsoft.com/office/2006/01/customui""
loadImage=""LoadImage""" & _
"ribbon" & _
"tabs" & _
"tab id=""TabReadMessage"" label=""MyMessage""" & _
"group id=""c4bBrand"" label=""" & g_product & """" & _
"button id=""IDS_WaehlenCombo"" label=""" &
GetCheckedResString(IDS_WaehlenCombo) & """
onAction=""cmdCommonRibbonBttn""
getImage=""GetImage"" /" & _
"button id=""IDS_Auflegen"" label=""" &
GetCheckedResString(IDS_Auflegen) & """ onAction=""cmdCommonRibbonBttn""
getImage=""GetImage"" /" & _
"button id=""IDS_Aktionen"" label=""" &
GetCheckedResString(IDS_Aktionen) & """ onAction=""cmdCommonRibbonBttn""
getImage=""GetImage""/" & _
"/group" & _
"/tab" & _
"/tabs" & _
"contextualTabs" & _
"tabSet idMso=""TabSetTableTools"" visible=""false""/tabSet"
& _
"/contextualTabs" & _
"/ribbon" & _
"/customUI"

It creates a new group. Do you see my failure?

Thanks
Christian



  #6  
Old July 6th 07, 02:18 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Extend Default Ribbon

You have to use this:

tabs
tab idMso="TabReadMessage"
group id ="c4bBrand" etc.

When you reference a built-in tab you have to use "idMso" and not "id". You
cannot add your own label to a built-in tab.

--
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 news
The COMAddIn works fine with the code. I only want to insert the group
into
the tab "TabReadMessage". Outlook creates me a new tab. Do you have any
idea
what I do wrong?


  #7  
Old July 6th 07, 04:14 PM posted to microsoft.public.outlook.program_addins
Christian Havel
external usenet poster
 
Posts: 43
Default Extend Default Ribbon

Hi Ken,

thanks a lot :-)
Christian

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

You have to use this:

tabs
tab idMso="TabReadMessage"
group id ="c4bBrand" etc.

When you reference a built-in tab you have to use "idMso" and not "id". You
cannot add your own label to a built-in tab.

--
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 news
The COMAddIn works fine with the code. I only want to insert the group
into
the tab "TabReadMessage". Outlook creates me a new tab. Do you have any
idea
what I do wrong?



 




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
Extend the default Ribbon Christian Havel Outlook and VBA 1 July 5th 07 02:54 PM
Is there any SDK to parse the outlook extend.dat file? IceKettle Add-ins for Outlook 4 January 17th 07 12:56 AM
Received invitation, how to extend to another user? DonnaA Outlook - Calandaring 1 June 6th 06 08:50 PM
Turn of autoarchive, remove extend.dat? Daniel Outlook - General Queries 2 May 17th 06 10:32 AM
Extend Activity function to Personal Folders ? am7777 Outlook - Installation 0 January 18th 06 09:12 PM


All times are GMT +1. The time now is 08:24 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.