Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Expression Web 3.0 Addin

1 view
Skip to first unread message

Jason

unread,
Jan 15, 2010, 1:20:11 PM1/15/10
to
Hi,

I am porting an Expression Web 2.0 adding to version 3.0 and have come
across an issue with the Expression Office Object library (V3), specifically
building toolbar menus.

These are the metods I am calling to attempt to create the menus. This code
worked in FrontPage, SharePoint Designer and Expression Web 2.0. The 3.0
office library in respect of the commandbar seems to be very limited.
However, this code does not fail.

Created a Reference to the Application Commandbars object.
Dim oAppCommandBars As Office.CommandBars = _AppObj.CommandBars

Created the tool bar:
_AppToolBar = oAppCommandBars.Add(Name:="CustomToolbar",
Position:=Office.MsoBarPosition.msoBarTop, MenuBar:=False, Temporary:=True)

Created the Menu on the toolbar:
cmdTBMenu =
CType(_AppToolBar.Controls.Add(Office.MsoControlType.msoControlPopup,
Temporary:=True), Office.CommandBarPopup)
cmdTBMenu .Caption = "My TB Menu"
cmdTBMenu .Enabled = True


and then finally added a button to the menu.
CmdButton = CType(cmdTBMenu
.Controls.Add(Type:=Office.MsoControlType.msoControlButton, Temporary:=True),
Office.CommandBarButton)
CmdButton.Caption = "Test Button"
CmdButton.Enabled = True
CmdButton.Visible = True
CmdButton.TooltipText = "Test Tool tip"


The menu appears, on mouse over it turns green, there is an icon showing
that it contains a sub menu but clicking does nothing. when I Look at the
objects they all appear to be in place as expected, visible and enabled, the
last menu just doesn't appear..

This is probably not too common and thus no reference any where that I can
find on the new object model but can someone help? every other asepct of my
addin works, even adding menus to the current menu structure, just not the
toolbar menu.

Thanks
Jason


Colbert Zhou [MSFT]

unread,
Jan 18, 2010, 8:41:37 AM1/18/10
to
Hello Jason,

The codes look correct to me. I have test in my side for Office
application. It behaves correctly. I am wondering what the problem
environment is.

For this newsgroup is for Office and my tech background is Office client
application, current, I have two points that I do not understand,

1. What is your AddIn host application. Is it Office? From your
description, it seems Expression Web 3.0, so do you mean this,
http://www.microsoft.com/expression/solutions/

2. What do you mean about Expression Office Object library? I am not aware
of this product. So would you mind clarify. :-)


Best regards,
Ji Zhou
Microsoft Online Community Support

0 new messages