[Overview][Types][Classes][Procedures and functions][Index] | Reference for unit 'ExtCtrls' (#lcl)

# TCustomRadioGroup.CheckItemIndexChanged

Checks whether ItemIndex has been changed since the previous call to the method.

## Declaration

Source position: extctrls.pp line 761

`protected procedure TCustomRadioGroup.CheckItemIndexChanged; virtual;`

## Description

No actions are performed in the method for the following conditions:

- The control has called, but not completed, the InitializeWnd method.
- csDesigning or csDestroying is present in ComponentState.
- ItemIndex has the same as the previous call to the method.

CheckItemIndexChanged calls UpdateRadioButtonStates to set the values in the Checked, TabStop, and TabOrder properties for the TRadioButton instances in the control. EditingDone is called to signal the OnEditingDone event handler (when assigned).

To maintain Delphi VCL compatibility, the OnClick event handler is signalled (when assigned) even when the change results from a direct assignment to ItemIndex. The more aptly named LCL event, OnSelectionChanged, is also signalled (when assigned).

CheckItemIndexChanged is called from the Clicked and Changed methods, and when a new value is assigned to the ItemIndex property.