Introduction to PowerBuilder

HomePrevious Lesson: Response Window
Next Lesson: MDI Frame Window

Child Window

As in Popup window, a Child Window can only be opened from another window, its parent. Even though you specify the window type as "child", it will behave like a main window, when opened directly, i.e. not opened from another window. "Directly" means from an application object, from a menu option and so on.

A child window can't be moved outside the parent window boundaries. If you try to move a child window outside its parent window limits, all the window area that you expect to see outside of parent window will be clipped. To see the full window area again you need to move back the child window into the parent window.

On the other hand, if you move the parent window, the child window will maintain its relative position within the parent.

A child window can't have a menu associated with, but a child window can still have a title bar. When you minimize a child window, the minimized icon is displayed at the bottom of the parent window and when it is maximized, it occupies the entire parent window. A child window is never considered as an active window. It doesn't mean that you can't do anything in the child window. The interpretation of "never considered as an active window" is from programming and not from the end-user perspective. When you close a parent window, any children that are inside it are closed automatically.
HomePrevious Lesson: Response Window
Next Lesson: MDI Frame Window