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.
- In the PowerBar, click the New button.
- Select WPF Window and click Next.
- Enter a window title and name, then click Next (or Finish).
- (Optional) Select the layout and click Next (or Finish).
- (Optional) Select a namespace and click Next (or Finish).
- Click Finish.
- When the window object is selected, open the Properties view.
- In the PBGeneral category, set the WindowType property to Mdi! or MdiHelp!.