Creating an MDI Child
MDI Child windows are those that reside within the MDI client area. MDI Child windows can be any OpenInsight form created for the current application. MDI Child windows are often created prior to creating the MDI frame. A feature of MDI child windows is that they do not contain menus. Menu functionality is provided by the frame.
An MDI child is executed from the MDI frame with the BASIC+ function START_MDICHILD.
- Choose Edit the menu for this form button from the Toolbar. The Menu Builder designer is displayed.
The first menu item is highlighted.
Enter Customers in the Add listbox. Click the + button.
Use the arrow buttons and indent buttons to place your menu item in the correct position.
Choose File, Save from the OpenInsight IDE.
Check the Quick Event check box. The Quick Events dialog box is activated.
Choose Start an MDI child window from QuickEvent Options. The EventAction Params value will be populated with default settings for the Start_MDIChild function.
On the Specify Procedure Parameters: change WinID to ‘CUSTOMERS’ and CreateParam to null (‘’). Include the single quotes.
Press the OK button. This will return you to the MDI Frame.
Select File, Save from the OpenInsight IDE. Enter MVDEMO_MDI for the name of the form.
Click the test run button from the Tool Bar. The following MDI Frame will display:
Choose Customers from the File menu. The Customers data entry form will display:
Your application now contains MDI capability.