Componentes.Terceros.FastRe.../internal/4.2/1/Source/frxPopupForm.pas
2007-11-18 19:40:07 +00:00

61 lines
1.2 KiB
ObjectPascal

{******************************************}
{ }
{ FastReport v4.0 }
{ Parent form for pop-up controls }
{ }
{ Copyright (c) 1998-2007 }
{ by Alexander Tzyganenko, }
{ Fast Reports Inc. }
{ }
{******************************************}
unit frxPopupForm;
interface
{$I frx.inc}
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls
{$IFDEF Delphi6}
, Variants
{$ENDIF};
type
TfrxPopupForm = class(TForm)
procedure FormDeactivate(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frxPopupFormCloseTime: UInt = 0;
implementation
{$R *.DFM}
procedure TfrxPopupForm.FormDeactivate(Sender: TObject);
begin
frxPopupFormCloseTime := GetTickCount;
Close;
end;
procedure TfrxPopupForm.FormClose(Sender: TObject;
var Action: TCloseAction);
begin
Action := caFree;
end;
end.
//862fd5d6aa1a637203d9b08a3c0bcfb0