unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, UFadeForm, StdCtrls;
type
TForm1 =
class(TForm)
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
FFadeForm: TFadeForm;
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
FFadeForm.Show;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
FFadeForm := TFadeForm.CreateNew(
nil);
FFadeForm.Visible := false;
FFadeForm.AlphaBlend := true;
FFadeForm.FadeIn := true;
FFadeForm.FadeOut := true;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
FFadeForm.Hide;
end;
end.