View Single Post
  #5  
Old February 15th 07, 03:27 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2007 Ribbon Minimized ComboBox OnChange

I'll play with your code later today or tomorrow and see what I can come up
with. I have no combobox code in VB 6, VB.NET or C# for either the ribbon or
a CommandBarComboBox, I don't use those controls myself.

I can repro #1 here, I do get an error sound when the ribbon is minimized
and -85 is entered as a font size. I'd consider that a bug, but I don't
really see that many users would enter a negative number for font size.

For #2 that also sounds like a bug, but if so there's not much you can do
about it. Let me see if I can interest someone from the ribbon team in these
problems.

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


wrote in message
ups.com...
Hi Ken,

I have got the Trial version of Office 2007 Enterprise Edition and I
am still seeing some wierd issues.

1. The messages not showing issue seems to appear on one of Outlook's
built-in control on my machine. Could you test the following:


Compose a new e-mail. (Ensure that the Ribbon is maximized) Click in
the body of the e-mail. Go to "Message" Tab In the Font Size combo
box Type in -85 and press enter. A message saying "The number must be
between 1 and 1638." should be displayed.

Now, Minimize the Ribbon and Carry out the same test. Go to Message
Tab Type in -85 and Press Enter. No message comes up on my machine,
the ribbon just minimizes.

Do you get the same results? What do I do about this?

I also observe that the message box does not appear if I enter a new
item into the combo box in my addin.

2. The second problem still exists:
When I drag my Group onto the QuickAccess Toolbar.
When the group is on the QAT I find that if the ribbon is minimized
and I change the selection on the combobox on the QAT it does not get
updated on the RibbonX when I Goto the message tab where mygroup is
located. It updates ok the Ribbon is maximized.

Also I observe the following:
If the Ribbon is maximized but I have the Group on the QAT also, I
make a change in the combobox on the QAT. I close the current
inspector and open up another inspector. The Combobox on the ribbon
comes out empty but the combobox on the QAT retains the last selected
value.

I am invalidating the combobox using the IRibbonUI object on Inspector
activate. The invalidating does not seem to take effect on both of the
comboboxes.

My code structure is as follows:
When the user selects an item from the drop down
(cboProject_OnChange), a user property is added to the mailitem. This
is saved in the e-mail. The GetText function returns the value in this
property that is added to the item.

I have a designer which Implements IRibbonExtensibility. All callbacks
are defined in this designer.

The following function returns the XML that I am using (with some
unneccessary buttons removed):

Public Function GetRibbonMailCompose() As String

Dim sRibbonXML As String

sRibbonXML = "customUI xmlns=""http://schemas.microsoft.com/
office/2006/01/customui"" onLoad=""Ribbon_OnLoad"" " & _
"ribbon" & _
"tabs" & _
"tab idMso=""TabNewMailMessage"" " & _
"group id=""QuickFile"" label=""QuickFile""" & _
"comboBox id=""cboProject"" label=""Project""
onChange=""cboProject_OnChange"" getText=""cboProject_GetText""
getItemCount=""cboProject_GetItemCount""
getItemLabel=""cboProject_GetItemLabel"" /" & _
"separator id=""s2""/" & _
"comboBox id=""cboPrint"" label=""Print""
onChange=""cboPrint_OnChange"" getText=""cboPrint_GetText""
getItemCount=""cboPrint_GetItemCount""
getItemLabel=""cboPrint_GetItemLabel"" /" & _
"button id=""cmdHelp"" onAction=""cmdHelp_Click""
label=""&Help"" getSupertip=""cmdHelp_GetSupertip""
imageMso=""Help"" /" & _
"/group " & _
"/tab" & _
"/tabs" & _
"/ribbon" & _
"/customUI"

GetRibbonMailCompose = sRibbonXML

End Function

I am initializing a Global IRibbonUI object on the Ribbon_OnLoad
callback which i use to invalidate the comboboxes.

Ken, Do you have any sample code in VB6.0 or any addin with combo
boxes on the ribbon written in VB6 that I could test on my machine
possibly.

Thank you for your help.

Regards,
Neil Goundar.


Ads