RibbonBar Menu Generator

Bruce Armstrong
CODE AUTHOR
Posts: 57
 4 years 10 months ago -  4 months 2 weeks ago #272 by Bruce Armstrong
Bruce Armstrong created the code: RibbonBar Menu Generator
The attached utility allows you to select a target and will list the menus within the application. If you double click on a menu, the utility will generate sample XML for a RibbonBar that will contain app menu items and ribbon buttons corresponding to menu items in the selected menu.

In order to deal with inherited menus, the application adds the libraries from the selected target to it's own library list. Since that approach only works in an executable (not the development environment) you much compile the utility form the attached PBL and run the executable.

As written, the utility can only deal with targets whose libraries are in the same directory as the target or in sub-directories under the target directory. If your application uses targets whose PBLs are not in that structure, you will need to modify the of_gettarget method to better handle the parsing the library locations.

You can see it in operation in the following video: vimeo.com/407468290/81c471cd86

12/28/2020: The sample has been updated for 2019 R3.

10/14/24: If you can wait until PB 2025 comes out (in 2025), wait. The Export to RibbonBar XML option that is added in that version makes the utility obsolete:
docs.appeon.com/pb2025/pbug/Customizing_RibbonBar.html

This message has an attachment file.
Please log in or register to see it.

Last Edit: 4 months 2 weeks ago by  Bruce Armstrong

Please Log in or Create an account to join the conversation.

Bruce Armstrong
CODE AUTHOR
Posts: 57
 1 week 2 days ago #591 by Bruce Armstrong
Bruce Armstrong replied the code: RibbonBar Menu Generator

See the note about 2025 though.  If you're thinking of moving to 2025 any soon after it is released my guess is that you'll want to use the RibbonView:  https://docs.appeon.com/pb/whats_new/Displaying_MDI_Menu_as_RibbonBar.html  It's a whole lot simplier.

Please Log in or Create an account to join the conversation.

Cliff Shamburger
Posts: 2
 1 week 3 days ago #590 by Cliff Shamburger
Cliff Shamburger replied the code: RibbonBar Menu Generator

LOL....nevermind.  I see it!

Please Log in or Create an account to join the conversation.

Cliff Shamburger
Posts: 2
 1 week 3 days ago #589 by Cliff Shamburger
Cliff Shamburger replied the code: RibbonBar Menu Generator

Where can I find the executable code for this generator?

Please Log in or Create an account to join the conversation.