Line | |
---|
1 | //kt -- Modified with SourceScanner on 9/5/2007
|
---|
2 | unit fSplash;
|
---|
3 |
|
---|
4 | interface
|
---|
5 |
|
---|
6 | uses
|
---|
7 | Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
---|
8 | ExtCtrls, StdCtrls, DKLang, jpeg;
|
---|
9 |
|
---|
10 | type
|
---|
11 | TfrmSplash = class(TForm)
|
---|
12 | Panel1: TPanel;
|
---|
13 | lblSplash: TStaticText;
|
---|
14 | lblVersion: TStaticText;
|
---|
15 | lblCopyright: TStaticText;
|
---|
16 | Panel2: TPanel;
|
---|
17 | Image1: TImage;
|
---|
18 | StaticText1: TStaticText;
|
---|
19 | procedure FormCreate(Sender: TObject);
|
---|
20 | private
|
---|
21 | { Private declarations }
|
---|
22 | public
|
---|
23 | { Public declarations }
|
---|
24 | end;
|
---|
25 |
|
---|
26 | var
|
---|
27 | frmSplash: TfrmSplash;
|
---|
28 |
|
---|
29 | implementation
|
---|
30 |
|
---|
31 | {$R *.DFM}
|
---|
32 |
|
---|
33 | uses ORSystem;
|
---|
34 |
|
---|
35 | procedure TfrmSplash.FormCreate(Sender: TObject);
|
---|
36 | var SplashFile : string;
|
---|
37 | begin
|
---|
38 | //lblVersion.Caption := 'version ' + <-- original line. //kt 9/5/2007
|
---|
39 | lblVersion.Caption := DKLangConstW('fSplash_version') + //kt added 9/5/2007
|
---|
40 | FileVersionValue(Application.ExeName, FILE_VER_FILEVERSION);
|
---|
41 | SplashFile := Trim(ParamSearch('SPLASH')); //elh
|
---|
42 | if SplashFile <> '' then begin //elh
|
---|
43 | if ExtractFilePath(SplashFile) = '' then begin //elh FileName instead of path
|
---|
44 | SplashFile := ExtractFilePath(ParamStr(0)) + SplashFile; //kt
|
---|
45 | end;
|
---|
46 | end else begin
|
---|
47 | SplashFile := ExtractFilePath(ParamStr(0)) + 'splash.jpg'; //kt
|
---|
48 | end;
|
---|
49 | if FileExists(SplashFile) then begin //kt
|
---|
50 | Image1.Picture.LoadFromFile(SplashFile); //kt
|
---|
51 | end;
|
---|
52 | end;
|
---|
53 |
|
---|
54 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.