RadioButton Class (Obsolete)

Description

RadioButton is an obsolete class. It was replaced by the RadioList class, which is the class for a group of radio buttons. The two buttons used to specify direction in the Find dialog box of the Text Editor application are radio buttons. Only one button in a radio list can be selected at a single time.

Availability

This class is supported only on the Classic Agent.

Inheritance

RadioButton derives from the Control class; no classes derive from this class.

Methods

In addition to the methods it inherits from the AnyWin class and Control class, RadioButton has the following methods and functions:

Method or Function
Description
iChoice = radio_button.GetChoice()
Returns an integer as the index of the selected radio button relative to the group of buttons containing radio_button. For radio_button you can specify any of the buttons in the group of radio buttons for which you want the selected one.
bState = radio_button.GetState([iChoice])
Returns the state (TRUE or FALSE) of radio_button if you omit iChoice. When you specify the optional integer argument, iChoice, it is an index into a group of buttons of which radio_button is any one. In this case, GetState returns the state of the iChoice button.
radio_button.SetChoice ([iChoice])
Selects the radio button. If you omit iChoice, radio_button is selected. The optional integer argument, iChoice, is an index into a group of buttons of which radio_button is any one. In this case, SetChoice selects the iChoice button.

Properties

In addition to the properties it inherits from the AnyWin class and Control class, RadioButton has the following properties:

Property
Description
bValue
The selection state of the radio button. BOOLEAN.
iValue
The index into its button group of the selected radio button. INTEGER.