windowMenu
Specifies a menu object that displays a list of all open MDI windows.
Property of
MenuBar
Description
The windowMenu property contains a reference to a menu object that has a MenuBar as its parent. When users open this menu object, dBASE Plus displays a pulldown list of all open MDI windows.
The windowMenu property automatically places a separator line on the pulldown list between any menu prompts and the list of open windows. The currently active window shows a check next to the window name.
If you use the Menu Designer to create a MenuBar, the windowMenu propety is automatically set to an item named Window on the menubar:
this.windowMenu = this.Window
(Note: that at least one menu item must be added to the Window menu in order for open MDI windows to be added automatically when the menu is run.)
Beginning with dBASE Plus version 9.5, the following standard
menu options are added to the Window menu and used to execute standard
built-in behaviors by setting each menu item's windowMenuItem property
:
Cascade
Tile Horizontally
Tile Vertically
Arrange Icons
Close All
For example:
In a new menu designer go to the 'Menu | Insert\'Window\'Menu ' item. This will automatically add the code for a new window menu item which includes the sub-menu's above.
Each new item will have it's windowMenuItem property set. And the menu's this.windowMenu property will automatically be set to the main 'Window' menu item.