Creating an MDI Frame Window

When you create a new window in PowerBuilder, its default window type is Main. Select Mdi! or MdiHelp! in the WindowType property to change the window to an MDI frame window.

When you change the window type to MDI, you must associate a menu with the frame. Menus usually provide a way to open sheets in the frame and to close the frame if the user has closed all the sheets.

Note: A sheet can have its own menu but is not required to. When a sheet without a menu is opened, it uses the frame's menu.
  1. In the PowerBar, click the New button.
  2. Select WPF Window and click Next.
  3. Enter a window title and name, then click Next (or Finish).
  4. (Optional) Select the layout and click Next (or Finish).
  5. (Optional) Select a namespace and click Next (or Finish).
  6. Click Finish.
  7. When the window object is selected, open the Properties view.
  8. In the PBGeneral category, set the WindowType property to Mdi! or MdiHelp!.