Ribbon DropDown menu trick

Ribbon DropDown menu trick

dsmits
Advocate Advocate
12,980 Views
43 Replies
Message 1 of 44

Ribbon DropDown menu trick

dsmits
Advocate
Advocate

 

 

some Kudos would be great 🙂

 

after button 1 & 2 you can pretty much just copy and paste your ribbon button/macro/cmd right in order like you normally would edit your ribbon (notepad++). for button 1 and 2 you need to keep this format to a point.

Note---you cannot edit your tree in power mill, you will have to do your changes in notepad and import your ribbon in. But after you import it in you can move your dropdown to another ribbon.

so i would finish your drop down and then move to your desire ribbon

 

Note-- you can make drop downs from other dropdown items but does get pretty confusing. ill post that one too if i still have.

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<entry application="PowerMill" application_version="1" type="uiRIBBONBAR" version="1">

  <entry type="uiCATEGORY">
    <resource key="uiLABELSTRING" value="TREE"/>
    <entry type="uiPANEL">
      <resource key="uiLABELSTRING" value="GROUP NAME"/>
      <resource key="uiRIBPANELALIGNMENT" value="false"/>
      <entry base_widget="Ribbon.Home.Macro.MacroRun" recursive="false">
        <resource key="uiLABELSTRING" value="THIS IS NUMBER 1"/>
        <resource key="uiBITMAP" value="CETEXTAROUNDCIRCLE"/>
        <resource key="uiCOMMAND" value="print = 1"/>
        <resource key="uiDYNAMICHELP" value="Text"/>
        <entry type="uiICONBUTTON">
         <resource key="uiLABELSTRING" value="This is number 2"/>
          <resource key="uiBITMAP" value="ROUTING"/>
          <resource key="uiCOMMAND" value="print = 2"/>
          <resource key="uiEDITTYPE" value="CommandButton"/>
        </entry>
      </entry>
      <entry type="uiICONBUTTON">
       <entry type="uiICONBUTTON">
          <resource key="uiLABELSTRING" value="This is Number 3"/>
          <resource key="uiBITMAP" value="ROUTING"/>
          <resource key="uiCOMMAND" value="print = 3"/>
          <resource key="uiEDITTYPE" value="CommandButton"/>
        </entry>
        <entry type="uiICONBUTTON">
          <resource key="uiLABELSTRING" value="This is Number 4"/>
          <resource key="uiBITMAP" value="ROUTING"/>
          <resource key="uiCOMMAND" value="print = 4"/>
          <resource key="uiEDITTYPE" value="CommandButton"/>
        </entry>
        <entry type="uiICONBUTTON">
          <resource key="uiLABELSTRING" value="This is Number 5"/>
          <resource key="uiBITMAP" value="ROUTING"/>
          <resource key="uiCOMMAND" value="print = 5"/>
          <resource key="uiEDITTYPE" value="CommandButton"/>
        </entry>
        <entry type="uiICONBUTTON">
          <resource key="uiLABELSTRING" value="This is Number 6"/>
          <resource key="uiBITMAP" value="ROUTING"/>
          <resource key="uiCOMMAND" value="print = 6"/>
          <resource key="uiEDITTYPE" value="CommandButton"/>
        </entry>
      </entry>
    </entry>
  </entry>
</entry>

ribbontree.pngplease like for sharing 

Accepted solutions (1)
12,981 Views
43 Replies
Replies (43)
Message 41 of 44

tiago.coelhoMEKWZ
Explorer
Explorer

Hi,

 

What do you use for edit xml files? I suggest you to use notepad++

 

Problem 1:  You are closing the ribbon on line 7.

tiagocoelhoMEKWZ_1-1659193252822.png

 

Problem 2: You have 'quick access buttons' without uiQUICKACCESSTOOLBAR

tiagocoelhoMEKWZ_2-1659193388838.png

 

Problem 3: Disorganized xml tree makes hard to find errors. Try to keep clean.

tiagocoelhoMEKWZ_3-1659193761775.png

 

 

If you need more help, just ask.

 

 

0 Likes
Message 42 of 44

iamcdn79
Mentor
Mentor

How are some of you guys able to get the down arrow on a separate line in your icons? I want the circled arrow on a separate line 

 

iamcdn79_1-1781631038653.png

 

like  @tiago.coelhoMEKWZ  had

 

iamcdn79_2-1781631115681.png

 

iamcdn79_3-1781631155354.png

 


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

0 Likes
Message 43 of 44

tiago.coelhoMEKWZ
Explorer
Explorer

Hello, iamcdn79

 

I just have the drop down arrow below the title when the length of the word is small like "ROCAS" in other cases it appears like yours.

tiagocoelhoMEKWZ_0-1781634378434.png

 

0 Likes
Message 44 of 44

iamcdn79
Mentor
Mentor

Ahhh so it's an intermel Powermill setting that determines that then 


Intel Core i9 13900KF CPU
128 GB Kingston Beast DDR4 SDRAM
PNY RTX A2000 6GB Video Card
WD 1 TB SSD Hard Drive
Windows 11 Pro

0 Likes