Progress
Language Tutorial
for Windows


Working with Radio Sets

A radio set is a set of radio buttons. Each button represents one possible value of a limited set of values for a single variable or field. You can select only one radio button in a radio set at a time. Choosing a button deselects the previously selected button. Figure 7–5 shows the parts of a radio set.

Figure 7–5: Parts of a Radio Set

You can use the radio-set widget with a CHARACTER, INTEGER, DECIMAL, LOGICAL, or DATE field or variable. This is the syntax for defining a radio set with the VIEW-AS statement.

SYNTAX
VIEW-AS RADIO-SET
  [ HORIZONTAL | VERTICAL ]
  [ size-phrase ]
  RADIO-BUTTONS label, value [ label, value ] ...
  [ TOOLTIP tooltip ] 

Table 7–5 explains the parts of the radio set syntax:

Table 7–5: Radio Set Syntax 
Component
Description
HORIZONTAL
VERTICAL
Progress orients the radio buttons vertically by default. Use the HORIZONTAL keyword to specify horizontal orientation.
size-phrase
You probably won’t use the size phrase for radio sets-Progress radio sets use the native look and spacing of your platform.
label, value
For each radio button, specify the screen label and the corresponding value. Enclose strings in quotes.
TOOLTIP tooltip
You can optionally define a text message string that automatically displays when the mouse pointer pauses over any of the labels defined for a radio set.

NOTE: Keep in mind that you can access on-line help information about a Progress keyword by highlighting the keyword and pressing the HELP key function (F1).


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