Appeon / PowerBuilder-UI-Example

The UI Modernization app demonstrates techniques to modernize the look and feel of PowerBuilder MDI apps with minimal code changes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PowerBuilder-UI-Example

This demo is a PowerBuilder application, developed with Appeon PowerBuilder 2022 R3. It demonstrates techniques to modernize the look of an application. It shows two major functionalities:

  1. Integrating the RibbonBar control into a MDI application.

    • Load a RibbonBar XML file.
    • Customize the invoke of the Clicked event of each child control of the RibbonBar control.
    • Dynamically create the menu under the LargeButton function.
    • Use scripts to dynamically enable/disable the status of each control on the RibbonBar.
  2. Applying the UI theme and its customization.

    • Dynamically switch between 4 themes.
    • Comparison between a window using the standard Theme and the customized Theme.
    • Use Theme to customize a window and its related standard controls.
    • Customize the Theme of a visual user object.
    • Customize the Theme of a DataWindow.

Note: This Demo only provides the customized theme color comparison based on two themes (‘Flat Design Dark’ and ‘Flat Design Blue’).

Sample Project Structure

The project is structured as follows.

|—— PowerBuilder-UI-Example Repository 
	|—— Appeon.UIDemo				PowerBuilder project source code

Setting Up the Project

Download this PowerBuilder demo application, and then:

  1. Open the PowerBuilder project in PowerBuilder 2022 R3.
  2. Download the database file pbdemo2021_for_sqlanywhere.zip from PowerBuilder-Project-Example-Database and restore it.
  3. Configure the ODBC data source.
  4. Copy the database connection string in the configured data source to replace the connection string in the original project. Note that the PWD in the connection string is masked. Please manually change it to the real password.
  5. Run the PowerBuilder project.

PowerServer Deployment

The source code includes a PowerServer project. If you want to deploy it using PowerServer, you need to go to the project object, switch to the Web APIs tab, and import your own license and then you can directly deploy it. (If you current PowerBuilder login account has PowerServer license, you can choose Auto Import, otherwise, you can choose Import from file.)

About

The UI Modernization app demonstrates techniques to modernize the look and feel of PowerBuilder MDI apps with minimal code changes.

License:MIT License


Languages

Language:PowerBuilder 100.0%