Главная страница | назад





Article #17040: Disabling a radio button in a TRadioGroup

 Question and Answer Database
FAQ2040D.txt Disabling a radio button in a TRadioGroup
Category :VCL
Platform :All
Product :All 32 bit
Question:
Is it possible to disable a given radio button in a RadioGroup?
Answer:
The following example demonstrates accessing a individual
radio button in a TRadioGroup component. Note that the
RadioGroup.Controls is a zero based array.
Example:
procedure TForm1.Button1Click(Sender: TObject);
begin
TRadioButton(RadioGroup1.Controls[1]). Enabled := False;
end;
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99