unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
btnClose: TButton;
Edit1: TEdit;
procedure btnCloseClick(Sender: TObject);
procedure Edit1Exit(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
procedure TForm1.btnCloseClick(Sender: TObject);
begin
Close;
procedure TForm1.Edit1Exit(Sender: TObject);
ShowMessage('Виконання проекту закінчено! До побачення!');
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
btnClose: TButton;
Edit1: TEdit;
procedure btnCloseClick(Sender: TObject);
procedure Edit1Exit(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.btnCloseClick(Sender: TObject);
begin
Close;
end;
procedure TForm1.Edit1Exit(Sender: TObject);
begin
ShowMessage('Виконання проекту закінчено! До побачення!');
end;
end.