Disable/enable an individual radio button of a RadioGroup

source : http://www.festra.com

The following code shows how to disable or enable an individual radio button in a TRadioGroup component, the second radio button in our example. Note that the RadioGroup.Controls is a zero based array.

procedure TForm1.Button1Click(Sender: TObject);
begin
TRadioButton(RadioGroup1.Controls[1]). Enabled := False;
end;

Leave a Reply