Defining the starting window in the Window painter

You use the Window painter to create the starting window, as you do for any window you create in PowerBuilder.

StepsTo create your application’s starting (or only) 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 needed.

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

StepsTo convert an existing application to run as a plug-in:

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

  2. If you do not plan to specify the APPLICATION attribute of the Embed element, do both of the following:

    For information about specifying the APPLICATION attribute, see “Attributes of the Embed element”.

  3. 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—and therefore the Activate event is never triggered. They can have title bars and can be minimized, maximized, and resized. In the plug-in environment, the child window is always restricted to the space allotted by the WIDTH and HEIGHT attributes specified on the Web page, as follows:

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