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

Adding Dynamic Buttons to the RibbonUI



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old August 24th 07, 05:12 PM posted to microsoft.public.outlook.program_addins
kapkema
external usenet poster
 
Posts: 2
Default Adding Dynamic Buttons to the RibbonUI

I am having trouble creating new controls on the Ribbon at Runtime.
Given the following sample scenario:

When a user opens a certain task - I want to replace the ribbon and add a
set of buttons based on that specific task.

The problem is the number of buttons being added is not fixed. So Task A
might have 3 buttons and Task B might have 5 buttons. Since the number of
buttons isn't fixed, I don't see a way to define the buttons ahead of time in
the RibbonX definition and use callbacks to update the content of each button.

So, I also looked at using the GetCustomUI call to change the XML that is
loaded, but this only called the first time Ribbon loads - even if I call
Invalidate, so it works for the first task that opens, but how do I update it
for the next task that opens?

Does anyone have a similar problem or a solution to adding the buttons to
the Ribbon in the C# code at runtime?
 




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
Help with Dynamic hyperlink Murphybp2 Outlook - Using Forms 0 April 30th 07 09:41 PM
Is Restrict Dynamic MON205 Outlook - General Queries 2 April 4th 07 04:34 PM
Is Restrict Dynamic MON205 Add-ins for Outlook 2 April 4th 07 04:34 PM
Is a dynamic Map to location possible? Angyl Outlook - Using Forms 0 July 5th 06 06:00 PM
adding coomand bar buttons to inspector window Ram Add-ins for Outlook 4 May 26th 06 06:16 AM


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