| Home | Previous Lesson: Summary Next Lesson: Exercises |
Q: What is mdi_1 object?
Ans: mdi_1 object refers to the client area in a MDI! or MDIHelp! type window.
Q: Which function opens a window as a sheet in a MDI window?
Ans: OpenSheet()
Q: Which types of window can be opened in a MDI window?
Ans: All window types except MDI! and MDIHelp! types.
Q: What will open if you open a Response window in a MDI window?
Ans: It behaves like a Main window.
Q: Which function arranges all the sheets in a MDI window in the specified order?
Ans: ArrangeSheets()
Q: From a menu script, how do you refer to the window that is associated with the menu?
Ans: ParentWindow
Q: Which function gives reference to the next sheet in the MDI window?
Ans: GetNextSheet()
Q: Can I issue OpenSheet() function from outside the menu script?
Ans: Yes.
Q: Can my application have more than one MDI/MDIHelp type windows open at the same time?
Ans: Yes, you can open any number of MDI/MDIHelp windows in a PowerBuilder application.
Q: What will happen if I open a window as a sheet (in a MDI window) that has no menu assigned to it?
Ans: The MDI window's menu will be displayed and acts as a menu to the sheet window.
Q: GetNextSheet() returns an error if there is no next sheet available in the MDI window. Is it true?
Ans: No. GetNextSheet() returns NULL if there is no next sheet. You need to use IsValid() to validate the return value of GetNext() function.
Q: What will happen if both MDI window and the sheet has a separate menu?
Ans: When no sheet is active, PowerBuilder displays MDI window's menu and toolbar. If a sheet with a menu is active, PowerBuilder displays only sheet's menu but both MDI window and sheet toolbar.
Q: What will happen if you close the MDI window?
Ans: PowerBuilder continues executing with the next line after the Open() function that opened the MDI window. A typical application opens MDI window from Application object's Open event and has no code after that function call; so the application ends.
Q: What happens if I place any window control in a MDI window?
Ans: Unless you write script to resize the MDI client area mdi_1, no sheet that you open with OpenSheet()/OpenSheetWithParm will display in that MDI window.
| Home | Previous Lesson: Summary Next Lesson: Exercises |