The parent window is the display area for the menus and child windows required by a user interface. The command pc
, optionally followed by various styles, creates a new parent window:
pc
creates a standard parent window
pc owner
creates a parent window that is owned by the currently selected window. The owner is disabled until the new parent is closed.
pc dialog
creates a window that has a dialog box frame, that is, it cannot be resized.
pc closeok
creates a window that closes without an event when the user selects the window control menu item: Close.
Parent windows are initially not visible. They can be displayed in various ways using the pshow
command, for example pshow sw_showmaximized
shows the parent window maximized (to fit the available screen). Typically, a parent window and all its children are created first, then the pshow
command is given.