Progress
Language Tutorial
for Windows
Programming Example
Follow these steps to view the enhanced menu:
- Open
lt-11-02.p
and run it. The display shown below appears:
![]()
- Display the Reports pull-down menu. The third and fourth items are disabled, so you can’t choose them.
- Choose Mailing Labels. The mailing label frame appears.
- Choose Output to Printer from the Reports menu.
- Choose Mailing Labels again. An alert box appears informing you that the report printed. Choose OK to dismiss the alert box.
- Browse through the various submenus. Notice that a letter in each submenu or menu item is underlined. The underlined letter is a mnemonic.
- Choose Tables
Exit, then press SPACEBAR to return to the Procedure Editor.
Following is the code for the enhanced version of the procedure:
These notes help explain the code:
- The CHECKED attribute applies only to toggle boxes and toggle box menu items. You can check it at any time to determine the on screen state of the menu item. If you wanted to write a trigger for the toggle box menu item, you would normally use the VALUE-CHANGED event function.
- Here, the CHECKED attribute determines whether to read the report output file into the editor or to let the user know that the output went to the default printer.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |