none
Dropdown Menue RRS feed

  • Question

  • Dear Developer out there,

    I've got a problem for some weeks now which I could not figure out by myself...

    Is it possible to put kind of  a dropdown menue into the for example category tab at the email list view. 

    Instead the category - item you could choose directly with a kind of a dropdown menue feeded by something like a database or xml file...

    Is there a possibility for doing such crazy stuff?

    Kind regards

    TUM_Student Jonas

    Tuesday, November 25, 2014 4:57 PM

Answers

  • Hello Jonas,

    Could you please take a screenshot of the place where exactly you need to add a drop down menu?

    See the How to: Customize a Built-in Tabpage for more information if you need to customize the ribbon.


    Also you may find the following series of articles helpful:

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)


    Tuesday, November 25, 2014 5:03 PM
  • Inside those 3 parts article mentioned by Eugene look for control called "dynamicMenu". The code is quiet simple; to insert your control it may be as follow ...

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="explorerRibbonLoaded">
      <ribbon>
        <contextualTabs>
          <tabSet idMso="TabComposeTools">
            <tab idMso="TabMessage">
              <group id ="MyGroupId" insertBeforeMso="GroupClipboard"  getVisible="GetVisible"  getLabel="GetLabel">
                <dynamicMenu id="selectSomethingMenu" getImage="GetImage" getSize="GetSelectIdMenuSize" getLabel="GetLabel" getVisible="GetVisible" getSupertip="GetSupertip" getContent="GetIDMenuContent"  />
              </group>
            </tab>
          </tabSet>
        </contextualTabs>
      </ribbon>
    </customUI>

    And you will be able to serve your dynamic content (no matter where is it from XML, DB) into the menu from handler "GetIDMenuContent". The content may looks like ...

    <menu xmlns="http://schemas.microsoft.com/office/2009/07/customui">
    	<toggleButton id="id1" getVisible="GetVisible" getEnabled="GetEnable" getLabel="GetLabel" onAction="OnToggleButton" getPressed="GetPressed"/>
    	<toggleButton id="id2" getVisible="GetVisible" getEnabled="GetEnable" getLabel="GetLabel" onAction="OnToggleButton" getPressed="GetPressed"/>
    </menu>

    Those 3 articles would be your choice #1 ;)

    Beast regards.

    Tuesday, November 25, 2014 8:26 PM

All replies

  • Hello Jonas,

    Could you please take a screenshot of the place where exactly you need to add a drop down menu?

    See the How to: Customize a Built-in Tabpage for more information if you need to customize the ribbon.


    Also you may find the following series of articles helpful:

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)


    Tuesday, November 25, 2014 5:03 PM
  • Inside those 3 parts article mentioned by Eugene look for control called "dynamicMenu". The code is quiet simple; to insert your control it may be as follow ...

    <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="explorerRibbonLoaded">
      <ribbon>
        <contextualTabs>
          <tabSet idMso="TabComposeTools">
            <tab idMso="TabMessage">
              <group id ="MyGroupId" insertBeforeMso="GroupClipboard"  getVisible="GetVisible"  getLabel="GetLabel">
                <dynamicMenu id="selectSomethingMenu" getImage="GetImage" getSize="GetSelectIdMenuSize" getLabel="GetLabel" getVisible="GetVisible" getSupertip="GetSupertip" getContent="GetIDMenuContent"  />
              </group>
            </tab>
          </tabSet>
        </contextualTabs>
      </ribbon>
    </customUI>

    And you will be able to serve your dynamic content (no matter where is it from XML, DB) into the menu from handler "GetIDMenuContent". The content may looks like ...

    <menu xmlns="http://schemas.microsoft.com/office/2009/07/customui">
    	<toggleButton id="id1" getVisible="GetVisible" getEnabled="GetEnable" getLabel="GetLabel" onAction="OnToggleButton" getPressed="GetPressed"/>
    	<toggleButton id="id2" getVisible="GetVisible" getEnabled="GetEnable" getLabel="GetLabel" onAction="OnToggleButton" getPressed="GetPressed"/>
    </menu>

    Those 3 articles would be your choice #1 ;)

    Beast regards.

    Tuesday, November 25, 2014 8:26 PM