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 mv_095.jpg from the Toolbar. The Menu Builder designer is displayed.

mv_096.jpg

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.

mv_097.jpg

Check the Quick Event check box. The Quick Events dialog box is activated.

mv_098.jpg

Choose Start an MDI child window from QuickEvent Options. The EventAction Params value will be populated with default settings for the Start_MDIChild function.

mv_099.jpg

On the Specify Procedure Parameters: change WinID to ‘CUSTOMERS’ and CreateParam to null (‘’). Include the single quotes.

mv_100.jpg

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.

mv_101.jpg

mv_102.jpg

Click the test run button mv_091.jpg from the Tool Bar. The following MDI Frame will display:

mv_103.jpg

Choose Customers from the File menu. The Customers data entry form will display:

mv_104.jpg

Your application now contains MDI capability.

  • bfs/mv/creating_an_mdi_child.txt
  • Last modified: 2023/10/25 10:49
  • by 127.0.0.1