-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbout.pas
57 lines (44 loc) · 1.26 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
UNIT About;
// ============================================================================
INTERFACE
USES
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, ExtCtrls, jpeg;
type
TfrmAbout = class(TForm)
Image1: TImage;
Bevel1: TBevel;
okBtn: TBitBtn;
lblCaption: TLabel;
Label2: TLabel;
Label3: TLabel;
Label5: TLabel;
lblEmail: TLabel;
lblReg1: TLabel;
lblReg2: TLabel;
lblURL: TLabel;
procedure lblURLClick(Sender: TObject);
procedure lblEmailClick(Sender: TObject);
private
public
end;
var
frmAbout: TfrmAbout;
// ============================================================================
IMPLEMENTATION
USES
ShellAPI;
{$R *.DFM}
// ----------------------------------------------------------------------------
procedure TfrmAbout.lblURLClick(Sender: TObject);
begin
ShellExecute (Handle, nil,
'https://www.davidmwilliams.com', nil, nil, SW_SHOWNORMAL)
end;
// ----------------------------------------------------------------------------
procedure TfrmAbout.lblEmailClick(Sender: TObject);
begin
ShellExecute (Handle, nil,
'mailto:[email protected]', nil, nil, SW_SHOWNORMAL)
end;
END.