Hello,
FloatSpinEdit1 and FloatSpinEdit2 are set to Enabled := False in the designer and FloatSpinEdit3 is set to Enabled := True in the designer. I have a CheckBox that, if checked, I want FloatSpinEdit1 and FloatSpinEdit2 to Enable := True, and FloatSpinEdit3 to Enable := False.
Here is the code that I have tried:
procedure TForm1.CheckBox1Click(Sender: TObject);
begin
If Checkbox1.Checked := True Then
begin
FloatSpinEdit1.Enabled := True;
FloatSpinEdit2.Enabled := True;
FloatSpinEdit3.Enabled := False;
end
else
FloatSpinEdit1.Enabled := False;
FloatSpinEdit2.Enabled := False;
FloatSpinEdit3.Enabled := True;
end;
However, although this code throws no errors, it does absolutely nothing and I can't wrap my head round why it won't.
Thanks in advance!