AllowGrayed (C++)

From RAD Studio Code Examples
Jump to: navigation, search

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