Progress
Programming
Handbook
Static Pop-up Menus
You set up a static pop-up menu by using the DEFINE MENU statement. By default, if you don’t specify the MENUBAR phrase, Progress treats this widget as a pop-up menu. To associate a pop-up menu with a widget, you assign the handle of the menu to the widget’s POPUP–MENU attribute.
The
p-popup.p
procedure displays a button that has an associated pop-up menu:
When you run this code, a button with a label Hello appears on the screen. When you pop up the associated menu and choose any of the first three menu items—Hello, Howdy, or Hey—the label of the button changes accordingly to the value of the chosen item. Subsequently, when you choose the button itself, the current value of the button’s label displays as a message at the bottom of the window. The message ends in either a period or an exclamation point, depending on the current state of the ep toggle-box menu item. See the "Menu Toggle Boxes" section for more information.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |