Navigation: Ultimate Suite for PowerBuilder Help > Single Page Application Windows > With Navigation >

Usage

Send comments on this topic.

 

This SPA window contains a custom windows caption. The custom caption can display toolbar items for expanded functionality.

To use this window, inherit from w_pbus_spa . This window doesn't support the PB menu but you can specify one so you can still use menu shortcuts.

Note: The PowerBuilder Menu object is currently not supported in this release. A menu alternative may be added in the future.

Known Issue: If your window's WindowState property is initially set to Maximized! and the window doesn't maximize when opened, you'll need to add the following to the top of your windows Open event:

 THIS.WindowState = Maximized!

Sample code:

//Instance Variables
//Declare the user object you want to display in the panel.
//These are user objects that you create
u_cst_dashboard iuo_dashboard
u_cst_employee iuo_employee
u_cst_sales_order iuo_order
u_cst_tilemenu iuo_tilemenu
u_cst_about iuo_about
u_cst_credits iuo_credits

//Open event of window
of_SetWindowIcon("icons\PBUS logo 24x24.png" )
of_SetCopyright("Copyright © 2020 Werysoft Inc." )

of_AddPanel("Dashboard", "icons\dashboard.png" , iuo_dashboard)
of_AddPanel("Tile Menu", "icons\tilemenu.png" , iuo_tilemenu)
of_AddPanel("Employee", "icons\open_employee 32x32.png" , iuo_employee)
of_AddPanel("Orders", "icons\order 32x32.png" , iuo_order)
of_AddPanel("About", "icons\about 16x16.png", iuo_about)

of_SelectPanel("Dashboard")

of_SetTheme("WINDOWS10_BLUE")

of_AddToolbarItem("Save","icons\save white.png" )
of_AddToolbarItem("Print","icons\print white.png" )
of_AddToolbarItem("Print Preview","icons\print preview white.png" )
of_AddToolbarSeparator()
of_AddToolbarItem("New Employee","icons\add_employee white.png" )
of_AddToolbarItem("Remove Employee","icons\remove_employee white.png" )
of_AddToolbarSeparator()
of_AddToolbarItem("New Order","icons\add_order white.png" )
of_AddToolbarItem("Remove Order","icons\remove_order white.png" )


Copyright © 2021 Werysoft Inc.