Progress
Programming
Handbook
Example Procedure
The procedure
p-combo1.p
illustrates several ways to interact with a combo box. It displays a frame containing a combo box labeled Finish and several buttons. Each button modifies the combo box and displays the current value of the underlying variable, finish–var, in the message area.
When you choose the combo box at startup, it displays the drop-down list with the initial value selected, as in the following screen:
![]()
Note that the procedure explicitly displays the combo box to show the initial assigned value. Each time you change the value (either directly with the drop-down list or indirectly with a button), the VALUE–CHANGED event is triggered to force assignment of the new value.
The procedure also illustrates the combo box LIST–ITEMS attribute and ADD–LAST( ) method. Progress provides additional attributes and methods to increase the usability of combo boxes.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |