mdiFrame

Type: Class

Availability: Read or write at run time only

The mdiFrame property of the Application class enables you to designate a specific form as being the next MDI frame. Any MDI child forms built after this point are placed in that user MDI frame. If the MDI frame form is not already active as an MDI frame, it is automatically created and displayed when the MDI child form is created and displayed. By default, MDI child forms are placed in a default MDI frame that is automatically supplied by JADE.

If the current mdiFrame form is created by your logic, it is built as an MDI frame regardless of the mdiFrame property setting of the form. Changing the next MDI frame does not affect any currently active forms. Setting the mdiFrame property instance to null causes the next MDI frame to return to the use of the JADE-supplied default.

The application can have any number of currently active MDI frames. Although forms that have the mdiFrame property set are created as MDI frames regardless of the value of app.mdiFrame, only the mdiFrame property determines the frame in which MDI child forms are placed.

An MDI frame automatically creates a child client window that covers the non-border area of the frame. The child MDI forms are placed inside this client window. If the MDI frame is defined with controls, the child client window is automatically positioned in an empty area of the MDI frame.

An MDI frame form has sizable borders, regardless of the borderStyle property value for the form in Painter.

The moveMdiClient form method enables this client window to be positioned as required (for example, below toolbars and above status lines). The moveMdiClient method is usually called from the resize method of the form.