-
Notifications
You must be signed in to change notification settings - Fork 3
/
About.pas
97 lines (80 loc) · 2.04 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
unit About;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls;
type
TFAbout = class(TForm)
Panel1: TPanel;
ProgramIcon: TImage;
ProductName: TLabel;
Version: TLabel;
Copyright: TLabel;
Comments: TLabel;
OKButton: TButton;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
PChanges: TPanel;
MReadme: TMemo;
BVersionInfo: TButton;
CheckFor: TLabel;
BToDo: TButton;
procedure OKButtonClick(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure BVersionInfoClick(Sender: TObject);
procedure BToDoClick(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure Label2Click(Sender: TObject);
procedure Label1Click(Sender: TObject);
private
{ Private declarations }
public
posX,posY : integer;
end;
var
FAbout: TFAbout;
implementation
uses SBMain, ShellApi;
{$R *.DFM}
procedure TFAbout.OKButtonClick(Sender: TObject);
begin
close;
end;
procedure TFAbout.FormClose(Sender: TObject; var Action: TCloseAction);
begin
posY:=top;
posX:=left;
end;
procedure TFAbout.BVersionInfoClick(Sender: TObject);
begin
if PChanges.Visible = False then begin
MReadme.Lines.LoadFromFile( SBMain.RunDir+'CHANGES.TXT' );
PChanges.Visible := True;
PChanges.BringToFront();
end else begin
PChanges.Visible := False;
end;
end;
procedure TFAbout.BToDoClick(Sender: TObject);
begin
MReadme.Lines.LoadFromFile( SBMain.RunDir+'TODO.TXT' );
PChanges.Visible := True;
PChanges.BringToFront();
end;
procedure TFAbout.FormShow(Sender: TObject);
begin
Version.Caption := 'version ' + VERSION_NAME + ' - ' + VERSION_DATE;
top:=posY;
left:=posX;
end;
procedure TFAbout.Label2Click(Sender: TObject);
begin
ShellExecute(Handle, 'open',
'https://www.teapotrecords.co.uk',nil,nil, SW_SHOWNORMAL);
end;
procedure TFAbout.Label1Click(Sender: TObject);
begin
ShellExecute(Handle, 'open',
'mailto:songbase@teapotrecords.co.uk',nil,nil, SW_SHOWNORMAL);
end;
end.