Progress
Language Tutorial
for Windows
Radio Set Programming Example
Follow these steps to demonstrate radio sets:
- Open
lt-07-06.p
and run it. The following display appears:
![]()
- Press TAB to move through the widgets.
- Use the arrow keys to move among radio buttons.
If you pause the mouse pointer over either set of radio buttons, an appropriate ToolTip text message is displayed.
- Press RETURN or SPACEBAR or click to choose a radio button. Note that the Product Code field updates after each selection.
- Choose Exit, then press SPACEBAR to return to the Procedure Editor.
Here is the code that created the display. This code also shows how to set up the radio sets:
These notes help explain the code:
- For each label-value pair, Progress creates a radio button. In this case, the screen labels describe a product and the values represent an internal code. A radio set has vertical orientation by default. The keyword HORIZONTAL in the VIEW-AS phrase changes the orientation.
- The INITIAL option sets the value of the P-code variable to "11".
- Whenever you select a different radio button, the VALUE-CHANGED event executes and Progress concatenates and reassigns the values of the radio-set variables to P-code.
NOTE: The ToolTip attribute noted in the code is ignored when this code is run on a character client.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |