Defining the starting window in the Window painter

You create the starting window for your application in PowerBuilder.

StepsTo create your application’s starting window:

  1. Create a new window object in PowerBuilder.

  2. On the window’s General tab of the Properties view, set the window type to Child.

  3. Add other controls as desired.

  4. Write scripts for events of the window and controls.

StepsTo convert an existing application to run as a PowerBuilder window ActiveX:

  1. Change the type of the opening window to child.

  2. Move application setup code from the application’s Open event or MDI frame events to the child window’s Open event.

Depending on the application’s design, you may need to redesign how it opens other windows.

About child windows

Child windows cannot have menus. They are never considered the active window; therefore, the Activate event is never triggered. They can have title bars and can be minimizable, maximizable, and resizable. However, in the PowerBuilder window ActiveX environment, the child window is always restricted to the space allotted by the WIDTH and HEIGHT attributes specified on the Web page:

As a result, it is not useful to allow minimizing, maximizing, or resizing of the child window.