Progress
Language Tutorial
for Windows
Assigning a Menu Bar to a Window
The last step in building a menu is assigning the menu bar to a window. You accomplish this by setting the window’s MENUBAR attribute equal to the menu’s widget handle. For example, if you are using the default window, you can refer to it with the DEFAULT-WINDOW system handle, as follows:
In graphical systems, you can create multiple windows. So, to assign a menubar to a window other than the default window, use the widget handle variable you use in the CREATE WINDOW statement, as shown in the following example:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |