unit Load;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, jpeg, StdCtrls, Registry, OneInstance;
type
TIntro =
class(TForm)
Image1: TImage;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Timer1: TTimer;
OneInstance1: TOneInstance;
procedure FormCreate(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
procedure FormResize(Sender: TObject);
private
public
end;
var
Intro: TIntro;
Version:
String;
implementation
uses main, options, MiniMode;
function GetFileVersion(
const Filename:
string;
var Version:
string; typ: Integer): Boolean;
stdcall;
external '
olt_data.dll';
{$R *.dfm}
procedure TIntro.FormCreate(Sender: TObject);
begin
getfileversion(application.ExeName,version,2);
label1.Caption:= '
Version ' + version;
label2.Caption:= label1.Caption;
label3.Caption:= '
Lade Ressourcen...';
label4.Caption:= label3.Caption;
form3.Openreg;
if reg.ValueExists('
MiniMode_on')
then
if reg.ReadInteger('
MiniMode_on') = 1
then form1.PopupMenu1.Items[3].Click;
form3.CloseReg;
end;
procedure TIntro.Timer1Timer(Sender: TObject);
begin
//form3.openreg;
//if reg.ReadInteger('Hauptfenster') = 1 then Form1.Show;
//form3.closereg;
Form3.OpenReg;
if reg.ReadInteger('
Pinger') = 1
then
begin
form1.pingtimer.Interval:= reg.ReadInteger('
Pingtime');
form1.pingtimer.Enabled:= true;
form1.PingTimerTimer(form1);
form1.button1.Visible:= false;
end
else
begin
form1.Button1.Visible:= true;
end;
form3.CloseReg;
intro.Hide;
timer1.Enabled:= false;
end;
procedure TIntro.FormResize(Sender: TObject);
begin
intro.Width:= 310;
intro.height:= 229;
end;
end.