1. Christopher Craft
  2. PowerBuilder
  3. Thursday, 3 December 2020 15:07 PM UTC

Is there a secret to using sheet windows that have a menu with a RibbonBar control on the frame? If I remove the menu from w_sheet then I can get the windows to show but if it has a menu then the first will show and any other window will cause the whole screen to blank out.

I need the ability to run both 'Classic' version (frame menu and sheet menu) and the RibbonBar version. For the RibbonBar version I have created a custom MDI which is inherited from my base MDI. I then assigned a blank menu (ie. m_mdi_none) to the frame.  I have a setting on the frame that determines what mode you are in so in the Open event of the sheet I hide the ControlMenu, ToolBar, and Menu but those settings do not seem to take effect. I need my sheet framework code so removing the menu from w_sheet is not an option.

I have attached a print screen of the first window and the second window. What am I doing wrong?

Chris

 

Attachments (1)
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Thursday, 3 December 2020 20:28 PM UTC
  2. PowerBuilder
  3. # 1

Hi Chris;

  FWIW: The built-in RibbonBar feature is currently designed to work without any Menu. Especially menus with toolbars. Both then menu text and their toolbar(s) will interrupt / block the RB's drawing and resizing beyond its current operating limits.

Regards ... Chris

 

Comment
  1. Mark Lee @Appeon
  2. Friday, 4 December 2020 02:56 AM UTC
Hi Christopher,



Chris Pollach is correct, “The built-in RibbonBar feature is currently designed to work without any Menu.”

To insert the RibbonBar control into the MDI window, please note that you must resize the width and height for the RibbonBar area in correspondence with the MDI client area to make sure the RibbonBar fits well in the MDI window.

You can refer to the following link for detail.

https://docs.appeon.com/pb2019r2/pbug/ch13s04.html#d0e23380



You can refer to the link below for other Ribbonbar notes:

https://docs.appeon.com/pb2019r2/pbug/ch13s04.html#_Important_notes



For your issue, it seems that you haven’t resized the width and height for the RibbonBar area in correspondence with the MDI client area in the second window.



Best regards,
  1. Helpful
  1. Christopher Craft
  2. Wednesday, 9 December 2020 18:10 PM UTC
Mark,

So are you saying there is no way for me to keep the menu assigned to w_sheet and use the ribbonbar? I would have thought I could keep it assigned but have the menu hidden.



I have read all the documents but they all refer to removing the controls from w_sheet - which is what I cannot do. I need to be able to do it through PowerScript.



Chris Craft
  1. Helpful
There are no comments made yet.
Govinda Lopez @Appeon Accepted Answer Pending Moderation
  1. Thursday, 3 December 2020 18:47 PM UTC
  2. PowerBuilder
  3. # 2

Hi Chris,

 

Perhaps this application demo: https://github.com/Appeon/PowerBuilder-RestClient-Example might be of use for you. You might find some examples of what you want to do there.

 

 

Regards,

Comment
  1. Christopher Craft
  2. Thursday, 3 December 2020 19:44 PM UTC
I have been looking at that example along with the other Sales app demo but they use Popup! as the windowType and they do not have a menu assigned. My setup is Main! as the WindowType and a menu is assigned - there are no examples with this setup (which is a typical setup for PB shops). If I can't support running in both modes then I won't be able to use the RibbonBar.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 3 December 2020 20:59 PM UTC
Hi Chris;

Food for thought ... I have been developing Apps for over a decade with PB before the built-in feature. I used Custom Visual User Object's for my design way back when. Using the CVUO approach you can ...

- Design it all visually

- Fully inheritable

- Can be a full OO compliant

- Can co-exist with menu's

- Can use other "kool" controls (ie TreeView).

- Can incorporate DWO's (if you use DWO's, then the whole RB is Zoomable too!)

etc.

Food for thought. I love PB .. always a few ways to design things. ;-)

HTH

Regards ... Chris



  1. Helpful
  1. Christopher Craft
  2. Wednesday, 9 December 2020 18:14 PM UTC
I have been exploring this option too. Thanks
  1. Helpful
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.