Sunday, 12 April 2020

PowerBuilder 2019R2 New Ribbon bar control – Create Simple screen with Ribbon Bar control

Create new application and Target.
If you are a new developer then check following links for the basics

I have created a sample app with window on it. Now add the ribbon bar control. Go to controls icon and select the Ribbon bar. You can do the same by Menu-> Insert-> RibbonBar


Now click on the window to place the control
Save the changes.

Go to Tools-> RibbonBar builder. By default it will open with a default template. 

Click on Save as button and save it on your application working directory.
Name it as Home for now.

Now go to your window where you placed the RibbonBar control and go to open event of the Window and write the following code.

rbb_1.ImportFromXMLFile('Home.Xml') 
Here the Home.XML is nothing but the one which did SaveAs in previous step.
Save the changes.

Run the application, you will see window like below.

Now you can make changes to this Ribbon Bar control using the RibbonBar Builder and see the changes over here.


-Pushparaj

1 comment:

zulmach said...

greetings...
nice to know other PowerBuilder Developer
please visit my blog
https://zulmach.wordpress.com

and subscribe to my channel
https://youtube.com/c/pemulapb

all about PowerBuilder
tq