Chapter 19. RadioButton Class

Table of Contents
IsChecked
Check
Uncheck
Indeterminate

The RadioButton class provides methods to query and modify radio button controls. It inherits all methods of the ButtonControl and DialogControl classes (see ButtonControl Class and DialogControl Class).

Use the GetRadioControl (see GetRadioControl) to retrieve an object of the RadioButton class.

Requires:

The RadioButton class requires the class definition file oodwin32.cls:

::requires "oodwin32.cls"

Methods:

Instances of the RadioControl class implement the methods listed in the RadioButton Instance Methods table.

Table 19-1. RadioButton Instance Methods

Method......on page
CheckCheck
IndeterminateIndeterminate
IsCheckedIsChecked
UncheckUncheck

Events for instances of the RadioButton class may be captured using the ConnectButtonNotify method of the MessageExtensions Class.

IsChecked

>>-aRadioButton~IsChecked--------------------------------------><


The IsChecked method retrieves the current state of the associated button control.

Return value:

One of the following values:

"CHECKED"

The radio button is selected or the check box is checked.

"UNCHECKED"

The radio button is not selected or the check box is unchecked.

"INDETERMINATE"

The Auto-3-State button is grayed to indicate an indeterminate state.

"UNKNOWN"

No information on the current state available.