Progress
Programming
Handbook


Menu Toggle Boxes

You can specify the TOGGLE–BOX option for selectable menu items in your pull-down menus and pop-up menus. When you use this option, the user can alternately check and uncheck the associated menu item by choosing it. The application can examine the CHECKED attribute for the item to determine whether the item is currently checked or unchecked. You can also initialize or change the condition of the menu item by setting the CHECKED attribute in the program.

Depending on the interface, the state of the menu item may be shown visually to the user. For example, on Windows, when you select the item Exclamation Point in p-popup.p, a check mark appears, as shown in the following screen. When you subsequently choose the button, the message ends with either an exclamation point or a period, depending on whether the Exclamation Point item is highlighted.

When the user toggles a toggle-box item, Progress sends the VALUE–CHANGED event to the menu item. Therefore, by defining a trigger on that event, you can take immediate action when the user toggles the value.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095