You've already forked lazarus-ccr
44 lines
614 B
ObjectPascal
44 lines
614 B
ObjectPascal
![]() |
unit Unit2;
|
||
|
|
||
|
{$mode objfpc}{$H+}
|
||
|
|
||
|
interface
|
||
|
|
||
|
uses
|
||
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
|
||
|
StdCtrls;
|
||
|
|
||
|
type
|
||
|
|
||
|
{ TForm2 }
|
||
|
|
||
|
TForm2 = class(TForm)
|
||
|
Edit1: TEdit;
|
||
|
Edit2: TEdit;
|
||
|
Edit3: TEdit;
|
||
|
Panel1: TPanel;
|
||
|
procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
||
|
private
|
||
|
{ private declarations }
|
||
|
public
|
||
|
{ public declarations }
|
||
|
end;
|
||
|
|
||
|
var
|
||
|
Form2: TForm2 = nil;
|
||
|
|
||
|
implementation
|
||
|
|
||
|
{$R *.lfm}
|
||
|
|
||
|
{ TForm2 }
|
||
|
|
||
|
procedure TForm2.FormClose(Sender: TObject; var CloseAction: TCloseAction);
|
||
|
begin
|
||
|
CloseAction:=caFree;
|
||
|
Form2:=nil;
|
||
|
end;
|
||
|
|
||
|
end.
|
||
|
|