Window Type (WindowType)

Window property of a form that determines the type of window used to display the form. One of: Normal | Dialog | Primary | Secondary | Contained | Popup

Value Description
Normal Fully-customizable window; all other window properties can be set.
Dialog Modal, non-resizable window used to display forms as dialog boxes. For more information, see Dialog Window.
Primary Non-modal window that cannot be moved outside the application shell. For more information, see Primary Window.
Secondary Window that can be displayed outside the application shell. It usually contains information that is dependent on an object in the primary window. For more information, see Secondary Window.
Contained Secondary, non-modal window that cannot be resized. It enables the form to be displayed in a Tab widget or Form Container widget. For more information, see Contained Form.
Popup Secondary, non-modal window that can pop up or drop down from a specified position in a widget. For more information, see Popup Window.

Description

The value of the Window Type property determines the other properties that can be set. If the Window Type is Normal, all other window properties can be set. Other values restrict the availability of other window properties.

Note:  To change the default settings for other window elements, such as the active title bar, active window border, and so on, you can use the Microsoft Windows Control Panel or the Unix XResources.

Setting Window Type in ProcScript

When creating a component instance of a form using newinstance, it is possible to specify windowtype=popup as one of the component instance properties. Setting windowtype to a value other than popup is not accepted and generated $procerror-1410.

For more information, see newinstance.

Related Topics