-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbout.pas
69 lines (56 loc) · 1.56 KB
/
About.pas
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
- About Dialog -
Denne dialogboks indeholder information om K.F tools og
skaberen af det samt navnene på beta testerne og
information om hvordan udvikleren kan kontaktes.
}
unit About;
interface
uses
ShareMem, Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls, main, jpeg;
type
TAboutForm = class(TForm)
Icon: TImage;
Titel: TLabel;
VerLabel: TLabel;
Credits: TMemo;
KontaktLabel: TLabel;
OKBtn: TButton;
CompileDate: TLabel;
KFSLogo: TImage;
procedure OKBtnClick(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure IconDblClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
AboutForm: TAboutForm;
implementation
{$R *.dfm}
// Finder ud af hvornår programmet er kompileret.
function GetCompiledDate : Pchar;
begin
result := PChar(DateTimeToStr(FileDateToDateTime(Fileage(Application.ExeName))));
end;
// Lukker vinduet.
procedure TAboutForm.OKBtnClick(Sender: TObject);
begin
Close;
end;
// Sætter variabler.
procedure TAboutForm.FormShow(Sender: TObject);
begin
AlphaBlendValue:=Main.Trans;
VerLabel.Caption:='Version: '+Main.Version;
CompileDate.Caption:='Kompileret den: '+GetCompiledDate;
end;
procedure TAboutForm.IconDblClick(Sender: TObject);
begin
ShowMessage('At leve er mere end bare at holde sig i live...'+#10+
'Keep your head up, and keep coding! // Neo');
end;
end.