1. Ewald Wallner
  2. PowerBuilder
  3. Saturday, 28 August 2021 08:29 AM UTC

Hello,

I am using PB 2019 R3 2703 Trail.

I am trying to switch an MDI application to the RibbonBar. I start the application and select a window from the Ribbonbar, it is called but it is not visible. With the old menu everything works.
The call in the program code is done with "opensheet" or "opensheetwithparm". If the call is made with "open" the window is displayed.

 

Thanks

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Saturday, 28 August 2021 12:55 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Ewald;

  That could happen if you are not resizing MDI_1 object class to account for RibbonBar correctly within the MDI frame. The PB help has more information & example code to use for this.  HTH

Regards ... Chris

Comment
There are no comments made yet.
Ewald Wallner Accepted Answer Pending Moderation
  1. Monday, 30 August 2021 08:07 AM UTC
  2. PowerBuilder
  3. # 1

Hello Chris,

Thanks for your support!

Do you mean the "resize event" in the MDI? I have copied this from the example. The ribbonbar is displayed correctly, also my resizing the window.

Or could you describe your hint a bit more detailed.

 

Ewald

Comment
  1. Chris Pollach @Appeon
  2. Monday, 30 August 2021 12:09 PM UTC
Hi Ewald;

I was referring to the Resize event of the MDI Frame window that resizes the MDI_1 object. If this is not done properly, no sheet will appear as sheets are attached inside of MDI_1 when opened.

A quick test would be to remove the ribbonbar object and if the sheets now open OK, then the likely issue is the RibbonBar object & the way it's placed inside the MDI Frame or how MDI_1 is moved & resized around the Ribbon Bar's space inside the MDI Frame.

Regards... Chris
  1. Helpful 2
  1. Ewald Wallner
  2. Tuesday, 31 August 2021 07:30 AM UTC
Thanks Chris,



I had an error in the resize event. Now it works!
  1. Helpful
  1. Chris Pollach @Appeon
  2. Tuesday, 31 August 2021 14:10 PM UTC
Hi Ewald ... I am super glad that you found the issue! :-)
  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.