1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
unit splash;
{$mode objfpc}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
StdCtrls, ExtCtrls;
type
{ TfrmSplash }
TfrmSplash = class(TForm)
Image2: TImage;
Label1: TStaticText;
StaticText1: TStaticText;
Timer1: TTimer;
procedure FormCreate(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
frmSplash: TfrmSplash;
x:Integer;
implementation
{ TfrmSplash }
procedure TfrmSplash.Timer1Timer(Sender: TObject);
begin
if x < 12 then
x:= x+1
else
frmSplash.Close;
end;
procedure TfrmSplash.FormCreate(Sender: TObject);
begin
x:= 0
end;
initialization
{$I splash.lrs}
end.
|