-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathUAbout.pas
More file actions
63 lines (47 loc) · 1.39 KB
/
Copy pathUAbout.pas
File metadata and controls
63 lines (47 loc) · 1.39 KB
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
unit UAbout;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.Imaging.pngimage, Vcl.ExtCtrls, Vcl.StdCtrls;
type
TFAbout = class(TForm)
Image1: TImage;
imgClose: TImage;
lblRAD2: TLabel;
lblRAD1: TLabel;
lblEmail: TLabel;
procedure imgCloseClick(Sender: TObject);
procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
procedure lblRAD1Click(Sender: TObject);
procedure lblEmailClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FAbout: TFAbout;
implementation
uses ShellAPI;
{$R *.dfm}
procedure ShellOpen(const Url: string; const Params: string = '');
begin
ShellExecute(Application.Handle, 'Open', PChar(Url), PChar(Params), nil, SW_SHOWNORMAL);
end;
procedure TFAbout.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
if Key = 27 then Close;
end;
procedure TFAbout.imgCloseClick(Sender: TObject);
begin
Close;
end;
procedure TFAbout.lblEmailClick(Sender: TObject);
begin
ShellOpen('mailto:shirson@gmail.com');
end;
procedure TFAbout.lblRAD1Click(Sender: TObject);
begin
ShellOpen('https://ideasawakened.com/post/rad-programmer-challenge-number-1-minesweeper-game-build');
end;
end.