You create the starting window for your application in PowerBuilder.
To create your application’s starting window:
Create a new window object in PowerBuilder.
On the window’s General tab of the Properties view, set the window type to Child.
Add other controls as desired.
Write scripts for events of the window and controls.
To convert an existing application to run as a PowerBuilder window ActiveX:
Change the type of the opening window to child.
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.
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:
Maximizing causes the window to fill the space allotted by the WIDTH and HEIGHT attributes.
Minimizing displays the window’s icon and title at the bottom of the ActiveX control’s allotted space.
If the child window is resizable, the user can drag the borders to make the window smaller (but not larger) than the allotted space.
As a result, it is not useful to allow minimizing, maximizing, or resizing of the child window.