AllowGrayed (C++)
Description
This example uses a check box on a form. When the application runs, the check box is initially checked. When you click it, the check box is unchecked. Clicking it again makes the check box appear dimmed.
Code
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
CheckBox1->AllowGrayed = true;
CheckBox1->State = cbChecked;
}
Uses
- Vcl.StdCtrls.TCustomCheckBox.AllowGrayed ( fr | de | ja )
- Vcl.StdCtrls.TCustomCheckBox.State ( fr | de | ja )