Previous Topic

Next Topic

Option Window statement

Control whether forms created using CreateObject are opened as MDI child forms or floating forms.

Open Window Normal will open as an MDI Child; Option Window Floating will open as a floating.

The default state is set by the TriggerObject if there is one, otherwise will default to Normal. For Toolbar shortcuts, the TriggerObject is set to the Form the shortcut is on.

To set this for a scripted or custom form, you can check the IsFloatingWindow property and set Option Window based on this, as follows:

If MyForm.IsFloatingWindow Then

Option Window Floating

End If

Syntax

Option Window {Normal | Floating}

Option

Description

Normal

Opens the window as an MDI child form.

Floating

Opens the window as a floating form.

See Also

MaxBasic Statements

Book Contents

Book Index