Working with Windows

Table of Contents

Working with Windows
About windows
Types of windows
About the Window painter
Building a new window
Viewing your work
Writing scripts in windows
Running a window
Using inheritance to build a window
Working with Controls
About controls
Inserting controls in a window
Selecting controls
Defining a control's properties
Naming controls
Changing text
Moving and resizing controls
Copying controls
Defining the tab order
Defining accelerator keys
Specifying accessibility of controls
Choosing colors
Using the 3D look
Using the individual controls
Understanding Inheritance
About inheritance
Creating new objects using inheritance
The inheritance hierarchy
Browsing the class hierarchy
Working with inherited objects
Using inherited scripts
Working with RibbonBar
Introduction to RibbonBar items
Creating a RibbonBar using RibbonBar Builder
Accessing the RibbonBar items via PowerScripts
Defining events for RibbonBar items
RibbonBar layout tips
Tutorial: How to Replace an Application Menu with a RibbonBar
Working with WebBrowser
What can WebBrowser support?
Choosing a WebView2 runtime version
Packaging WebBrowser
Configuring WebBrowser global settings
Triggering PowerBuilder events in JavaScript
Working with Menus and Toolbars
Menus and menu items
Using the Menu painter
Building a new menu
Defining the appearance and behavior of menu items
Providing toolbars
Writing scripts for menu items
Using inheritance to build a menu
Using menus in your applications
Working with User Objects
About user objects
About the User Object painter
Building a new user object
Using inheritance to build user objects
Using user objects
Communicating between a window and a user object

This part describes how to create windows for your application. It covers the properties of windows, the controls you can place in windows, how to use inheritance to save time and effort, and how to define menus. It also introduces user objects.