- Dionizas Antipenkovas
- PowerBuilder
- Monday, 27 March 2023 02:43 PM UTC
Hello,
I am trying to add RibbonBar to my MDI application and following tutorial: https://docs.appeon.com/pb2022/pbug/Replace_an_Application_Menu_with_a_RibbonBar.html#d0e25044
I am using PB 2022 Build #1892
After changing MDI menu to empty one, I add ribbon control and adding the code to resize event. Unfortunately the code shown in Tutorial (see the link above) is not working as compiler throws error about missing mdi_1 object at lines below:
//resize mdi_1 based on RibbonBar mdi_1.move (0, rbb_1.height + newheight - this.workspaceheight()) mdi_1.resize (newwidth, newheight - rbb_1.height - ( newheight - this.workspaceheight()))
I downloaded the Ribbon Application example and saw, that mdi_1 corresponds to MDIClient type which is missing on my w_mdi window.
As a result, opening sheets with openshee(..) does not work property as windows are not shown within MDI space.
Is there a way to add MDIClient object to MDI window?
Thanks!
BR,
D.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.