//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "AllowGrayed.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
// BeginExample: AllowGrayed
// Property: StdCtrls.TCustomCheckBox.AllowGrayed
// Property: StdCtrls.TCustomCheckBox.State

// BeginCode
/*
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.
*/
void __fastcall TForm1::FormCreate(TObject *Sender)
{
  CheckBox1->AllowGrayed = true;
  CheckBox1->State = cbChecked;
}
// EndCode
// EndExample: AllowGrayed
//---------------------------------------------------------------------------
