Home VCL Poems TListBox

begin  // VCL
  var myLS := TListBox.Create(Application);
  myLS.Parent := MainForm;
  myLS.Align := TAlign.alClient;
  myLS.Margins.SetBounds(30,30,30,30);
  myLS.AlignWithMargins := True;
  myLS.Items.Add('I am TListBox');
  myLS.Items.Add('I am Delphi');
  myLS.Items.Add('I am RAD Studio');
end;
In Delphi's world of code and might,
A component stands, both strong and bright,
TListBox is its given name,
A list of items, its primary aim.

With items added, and selected too,
It displays a list, for me and you,
A useful tool for choice and selection,
In user interfaces, it finds perfection.

In code, its properties we set with care,
Items, Color, Font, and more to spare,
To create a list so pleasing to see,
For the user's eyes, a visual spree.

So here's to TListBox, a component so grand,
In Delphi's toolkit, it does stand,
A list of items for all to view,
In user interfaces, it does ensue.
Scroll to Top