| Home | Previous Lesson: Client Area Next Lesson: MDI_1 Control |
OpenSheet() and OpenSheetWithParm() are the two functions provided by PowerBuilder to open sheets in the client area. Any type of PowerBuilder window can be opened as a sheet in a MDI Frame window except, of course, another MDI Frame window. In other words, you can't embed MDI Frames within each other.
The standard sizing, minimizing and maximizing features of windows are automatically defined by PowerBuilder when using the OpenSheet() or OpenSheetWithParm() functions. As an example, suppose you define a window of type Main, as non-resizable without control menu, maximize and minimize icons. When you open this window with Open(), all the properties you defined are retained. However, when you open the same window with OpenSheet() or OpenSheetWithParm(), it is opened with the standard features of an MDI sheet, which include the resizable properties and control menu, maximize and minimize icons. Even if a response window is opened using OpenSheet() or OpenSheetWithParm(), PowerBuilder automatically enables all the standard features.
When you close a MDI Frame, PowerBuilder first closes all the sheets that are opened within the "MDI Frame" window and then closes the MDI Frame.
| Home | Previous Lesson: Client Area Next Lesson: MDI_1 Control |