unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Buttons; type TForm1 = class(TForm) btn1: TBitBtn; procedure btn1Click(Sender: TObject); private { Private declarations } public…