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. #16
    VBAX Regular
    Joined
    May 2010
    Posts
    65
    Location
    I can't give you the xlam ribbon script because access to the script is locked. But, I think, a look at the screenshots of the ribbon and a look at the xml file should be sufficient to illustrate to you what I was trying to explain.

    I took screenshots of the Ribbon tab before and after clicking the "Connect" button (see attached jpg file).
    Clicking the "Connect" button starts the login procedure. With successful login the pulldown menus "Calculator" and "Finder" appear in the "Protocols" button groups.

    Below is the xml script. The key button group to look at is, I believe, the "Protocols" button group. To make the xml script shorter I removed 4 lines of dynamic menus in the "Protocols" button group.
    Question, where in the button group "Protocols" is the script for the pulldown menus "Calculator" and "Finder"?

    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="OnLoad"><ribbon>
    <tabs>
    
    
    <!-- The first half of the ribbon tab -->
    
    
    <tab id="ABCTab" getLabel="DisplayName" insertAfterMso="TabHome" getVisible="IsActive">
    
    
    <group id="ServerGroup" label="Server">
    
    
                   <splitButton id="ConnectSB" showLabel="true" size="large">
    
    
                                  <button id="ConnectABC” imageMso="ServerConnection" onAction="ConnectToServer" label="Connect"/>
    
                                  <menu id="ConnectMenu" enabled="true" label="Connection">
                                                   <button id="Connect" imageMso="ServerConnection" onAction="ConnectToServer" label="Connect to Server" getSupertip="ConnectToServerTip"/>
                                                   <button id="ChangeServer" image="icnChangeServer" onAction="ChangeServer" label="Change Server" getSupertip="ChangeServerTip"/>
                                  </menu>
    
    
                   </splitButton>
    
    
    </group>
    
    
    <group id="Menus" label="Protocols">
    
    
                  <dynamicMenu id="MenuABC” getEnabled="HaveABCProtocols" label="Recently Used" screentip="Recently used protocols" image="icnFolderLarge" size="large" getContent="ABCMenuContent"/>
    
                  <dynamicMenu id="Menu1" tag="0" getVisible="HaveFolderTag" getLabel="FolderTag" getSupertip="FolderTipTag" image="icnFolderLarge" size="large" getContent="MenuContentTag"/>
                  <dynamicMenu id="Menu2" tag="1" getVisible="HaveFolderTag" getLabel="FolderTag" getSupertip="FolderTipTag" image="icnFolderLarge" size="large" getContent="MenuContentTag"/>
    
                  <button id="OpenProtocolSearch" image="icnProtocolSearchLarge" size="large" onAction="OpenProtocolSearch" label="Protocol Search" getEnabled="HaveServerConnection"/>
    
    
    </group>
    
    
    <group id="ABProtocols" label=“Favorites">
    
    
                  <button id="OpenManageFavorites" getEnabled="HaveServerConnection" imageMso="AddToFavorites" onAction="OpenManageFavorites" label="Manage Favorites"/>
    
                  <button id="ABProtocol1" image="icnProtocol" onAction="RunABProtocolTag" tag="0" getVisible="HaveABProtocolTag" getLabel="ABProtocolNameTag" getSupertip="ABProtocolCommentTag"/>
                  <button id="ABProtocol2" image="icnProtocol" onAction="RunABProtocolTag" tag="1" getVisible="HaveABProtocolTag" getLabel="ABProtocolNameTag" getSupertip="ABProtocolCommentTag"/>
    
    
                  <dynamicMenu id="ABMoreMenu" tag="6" getVisible="HaveMoreABProtocols" label="More" image="icnFolder" getContent="ABMenuContent"/>
    
    
    </group>
    
    
    </tab>
    </tabs>
    </ribbon>
    </customUI>
    Attached Images Attached Images

Posting Permissions

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