Partager via


WindowType Property

Specifies how a form set or form behaves when it is shown or run with DO FORM. Available at design time and run time.

Object.WindowType[ = nType]

Return Value

  • nType
    For a form set, the settings for the WindowType property are as follows:

    Setting

    Description

    0

    Modeless.

    1

    Modal. No other forms can become active and the menu can be active. All forms in the form set are active.

    2

    Read. The form set behaves as if it were activated by the READ command. Execution stops on the Show method or DO FORM command. When the Form is deactivated, execution continues. (Included for backward compatibility, and available only for Forms converted from previous versions of FoxPro.)

    3

    Read Modal. The form set behaves as if it were activated by a READ command's MODAL clause. Program execution stops at the Show method or the DO FORM command. Any forms specified in the WindowList property are available, but other forms and the menu are not available. (Included for backward compatibility, and available only for forms converted from previous versions of FoxPro.)

    For a form, the settings for the WindowType property are as follows:

    Setting

    Description

    0

    Modeless.

    1

    Modal. No other forms can become active and the menu is inactive. All forms in the form set are active.

Remarks

Applies To: Form | FormSet | _SCREEN

You cannot change the WindowType setting once the window has been displayed.

The Show method takes a parameter that can override the WindowType setting.

Note

The WindowType setting of a form set overrides the individual WindowType settings of the forms it contains. For example, if the WindowType property for a form set is set to 0, all the forms contained in it are modeless, regardless of their individual WindowType property settings.

See Also

Reference

DO FORM Command

READ Command

READ EVENTS Command

Show Method (Visual FoxPro)

WindowList Property

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)