1. Philip Troise
  2. Beta Testing
  3. Saturday, 26 December 2020 17:19 PM UTC

Working in the initial release of PB2019. However, No idea if it still works with newer PB releases like R3.

I am trying to use it in this Powerbuilder R3 and cannot seem to get it to generate. Not sure if it's just not working in this beta release.

 

 

As seen in the attached snapshot, I added the .pbl download for the ribbon generator to the library list, as well as made it as a target.

 

I keep watching the video but lost how it suppose to work.

Attachments (1)
Bruce Armstrong Accepted Answer Pending Moderation
  1. Tuesday, 29 December 2020 05:06 AM UTC
  2. Beta Testing
  3. # 1

I've updated the code sample at https://community.appeon.com/index.php/codeexchange/powerbuilder/254-ribbonbar-menu-generator to address the issues with & in the menu item text and the change in syntax in R3 with white space in the lowest level menu items.

I also updated the video referenced on that page showing how to use it.  It makes it clearer that you need to compile it and run the compiled tool.

Comment
There are no comments made yet.
Arthur Hefti Accepted Answer Pending Moderation
  1. Sunday, 27 December 2020 14:58 PM UTC
  2. Beta Testing
  3. # 2

Hi Philip

There are 2 parts: Generation of the XML and using the XML.

Generation:
PB didn't change how the menus are build in 20+ years. So this part should work anyway. Based from your description and your print screen you use it the wrong way round. 
Either create an executable of the RibbonBar Generator or add the library list of your application to the Ribbon Bar generator library list. Run the RibbonBar Generator and choose for case 1 the target of your application for case 2 the RibbonBar Generator target.

The menus are imported and you can generated an XML from the menu by double clicking it.

Usage:
Depending on your menu the XML can't be use without some changes to the XML. I found that the application menu can have 2 level of <Item> only and no withe space in the 2nd level. So you can either skip the application menu generation, tweak it or remove/change the XML manually.
The 2nd finding is that if your menu includes Ampersands the RibbonBar Builder Tool shows an error was well. This can be fixed with Search/Replace in the RibbonBar Builder (Ctrl-H).

Regards
Arthur

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Saturday, 26 December 2020 17:37 PM UTC
  2. Beta Testing
  3. # 3

Hi Philip;

    FWIW:  Other people have noted as well that Bruce's code does not work with R3. That's no surprise as there have been various changes to the RibbonBar in both  the R2 & now R3.

Regards... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.