Windows form the interface between the user and a PowerBuilder application. Windows can display information, request information from a user, and respond to the user's mouse or keyboard actions.
A window consists of:
Properties that define the window's appearance and behavior
For example, a window might have a title bar or a minimize box.
Events
Windows have events like other PowerBuilder objects.
Controls placed in the window
When you create a window, you specify its properties in the Window painter’s Properties view. You can also dynamically change window properties in scripts during execution.
You can write scripts for window events that specify what happens when a window is manipulated. For example, you can connect to a database when a window is opened by coding the appropriate statements in the script for the window's Open event.
You place PowerBuilder controls, such as CheckBox, CommandButton, or MultiLineEdit controls, in the window to request and receive information from the user and to present information to the user.
After you place a control in the window, you can define the style of the control, move and resize it, and build scripts to determine how the control responds to events.