50 lines
791 B
ObjectPascal
50 lines
791 B
ObjectPascal
unit Unit4;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs,
|
|
ExtCtrls, StdCtrls;
|
|
|
|
type
|
|
|
|
{ TForm4 }
|
|
|
|
TForm4 = class(TForm)
|
|
Edit1: TEdit;
|
|
Edit2: TEdit;
|
|
Edit3: TEdit;
|
|
Panel1: TPanel;
|
|
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
|
procedure FormCreate(Sender: TObject);
|
|
private
|
|
{ private declarations }
|
|
public
|
|
{ public declarations }
|
|
end;
|
|
|
|
var
|
|
CntMM:integer = 0;
|
|
implementation
|
|
|
|
{$R *.lfm}
|
|
|
|
{ TForm4 }
|
|
|
|
procedure TForm4.FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
|
begin
|
|
CloseAction:=caFree;
|
|
end;
|
|
|
|
procedure TForm4.FormCreate(Sender: TObject);
|
|
begin
|
|
Inc(CntMM);
|
|
Panel1.Caption:=Panel1.Caption + IntToStr(CntMM);
|
|
Caption:=Panel1.Caption;
|
|
end;
|
|
|
|
end.
|
|
|