Results 1 to 20 of 25

Thread: How does one activate ribbon components from an xlam file ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #19
    VBAX Regular
    Joined
    May 2010
    Posts
    65
    Location
    I boiled down the xml script to the bare bones. The script below just has the login button and the 2 dynamic getVisible menus. I tested it. It is functional.
    Paul, in your example all the ribbon elements are in the xml file and you use the xlam script to control the visible/invisible toggle.
    In my example the xml does not contain all the ribbon elements. That means the xlam script does not only control the toggle but also contains the script for the to be toggled ribbon elements.
    Can you give me a simple xml/xlam script example with one toggling dynamic menu that reproduces my example?

    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="RibbonLoad">
    <ribbon> 
    <tabs>
    
    <tab id="ABCTab"  getLabel="RibbonDisplayName" insertAfterMso="TabHome" getVisible="RibbonIsActive">
                    
    <group id="ABCServerGroup" label="Server">
                                            
        <button id="ABCConnect" imageMso="ServerConnection"  onAction="ConnectToServer"  label="Connect"/>            
    
    </group>
                    
    <group id="ABCMenus"  label="Protocols">
                
        <dynamicMenu id="ABCMenu1"  tag="0" getVisible="HaveFolderTag"  getLabel="FolderByTag" image="icnFolderLarge" size="large"  getContent="MenuContent"/>        
        <dynamicMenu id="ABCMenu2"  tag="1" getVisible="HaveFolderTag"  getLabel="FolderByTag"  image="icnFolderLarge"  size="large"  getContent="MenuContent"/>
            
    </group>
                
    </tab>        
    </tabs>
    </ribbon>
    </customUI>
    Last edited by dschmitt; 01-19-2015 at 07:37 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •