-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbetanotes.pas
47 lines (38 loc) · 1.11 KB
/
betanotes.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
unit betanotes;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TfrmReadMe = class(TForm)
memContent: TMemo;
cmdClose: TButton;
chkNoShow: TCheckBox;
procedure FormCreate(Sender: TObject);
procedure cmdCloseClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmReadMe: TfrmReadMe;
implementation
{$R *.dfm}
procedure TfrmReadMe.FormCreate(Sender: TObject);
begin
if (fileexists(extractfilepath(application.exename)+'new.txt')) then
begin
memContent.Lines.LoadFromFile(extractfilepath(application.exename)+'new.txt');
end else
begin
memContent.Text := 'TISFAT is currently in Beta stages, and as with all Beta''s, might have bugs, and different releases may treat things differently. To find out about the changes in each version, read the README.TXT file';
end;
Left := (screen.width div 2) - (width div 2);
Top := (screen.height div 2) - (height div 2);
end;
procedure TfrmReadMe.cmdCloseClick(Sender: TObject);
begin
Close;
end;
end.