To complete the UI modernization solution, PowerBuilder 2025 introduces the DisplayMenuAsRibbonBar property.
With the DisplayMenuAsRibbonBar property, users can instantly convert their existing menus into a ribbon bar style, enhancing the UI without needing to rewrite menu logic. This feature provides two main approaches for customization:
-
#1: RibbonView for quick and straightforward UI improvements with basic customization.
-
#2: RibbonBar Converter for advanced users who need full control over the ribbon bar design and functionality.
This dual approach allows users to modernize their application’s navigation in a way that best fits their needs, from basic visual enhancements to deep customization of the ribbon bar's behavior and style.
There are some general guidelines for how to reduce the cost of renovating old applications and make modifications more quickly:
-
It is recommended to use RibbonView. Set the relevant properties directly in the Menu to achieve the desired UI effect without the need to modify any code that depends on the properties of the MenuItem.
Using RibbonBar Converter may increase maintenance costs when adding new MenuItem in the future. Therefore, it is suggested to prioritize adjusting the ribbon bar directly in the Menu.
-
If you were originally using a traditional-style menu, it is suggested to consider converting to the contemporary style first, so that you can set additional properties such as menu image, font face, and text size all of which can be displayed in the ribbon bar.
-
Consider adding personalized preference configurations in the application, allowing users to choose certain options to fine-tune the ribbon bar UI effects. This can reduce the risks associated with upgrades. If users dislike the solution, they can revert back easily.
-
Compatibility with existing UI controls in the old application needs to be considered. For example, using third-party UI frameworks or using the Win API for custom drawing.