AllowGrayed (Delphi)
Contents
Description
This example uses a check box on a form. When the application runs, the check box is initially checked. When the user clicks it, the check box is unchecked. Clicking it again grays the check box.
Code
procedure TForm1.FormCreate(Sender: TObject);
begin
CheckBox1.AllowGrayed := True;
CheckBox1.State := cbChecked;
end;
Uses
- Vcl.StdCtrls.TCustomCheckBox.AllowGrayed ( fr | de | ja )
- Vcl.StdCtrls.TCustomCheckBox.State ( fr | de | ja )