Home VCL Poems TCheckBox

begin  // VCL
  var myCB := TCheckBox.Create(Application);
  myCB.Parent := MainForm;
  myCB.Caption := 'I am TCheckBox';
  myCB.Align := TAlign.alTop;
  myCB.Margins.SetBounds(25,25,25,25);
  myCB.AlignWithMargins := True;
  myCB.Checked := True;
end;
In Delphi's realm of code and form,
A component stands, both true and norm,
TCheckBox is its given name,
A simple box, yet not so plain.

With just a click, its state can change,
From checked to unchecked, it can range,
A useful tool for choice and selection,
In user interfaces, it finds perfection.

In code, its properties we set,
Caption, Color, Font, and yet,
Its most important feature to see,
Is the Checked property, true or false it can be.

So here's to TCheckBox, a component so fine,
In Delphi's toolkit, it does shine,
A simple box with power untold,
In user interfaces, it does unfold.
Scroll to Top