Progress
Programming
Handbook
Selection Lists
A selection list is a scrollable list of values for a CHARACTER field or variable. You can use a selection list to allow an end user to select one or more items from a finite list of character values. You can move within a selection list using the up and down arrow keys. In graphical and character interfaces, you can position to a value in the list by typing the first letter of the value.
On Windows, the user can select a value by pointing at it and clicking the SELECT mouse button. In a character interface, the user can select a value by positioning to it and pressing either RETURN or SPACEBAR. When an item is selected, the VALUE–CHANGED event occurs.
Typically, after the user selects one or more items from the list, you want to perform some action. For example, if a selection list contains a list of tasks, you might want to run a procedure to perform the selected task. Running the associated procedure is the default action for that selection list. You establish the default action by coding a trigger for the DEFAULT–ACTION event. This event occurs when the user:
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |