-
Notifications
You must be signed in to change notification settings - Fork 0
/
UAbout.pas
39 lines (30 loc) · 835 Bytes
/
UAbout.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
// UAbout.pas - Demonstrate Projectile Motion Equation About Box
// https://ardeshirv.github.io/Projectile/
// Copyright© 2002-2003 [email protected], Licensed under GPLv3+
unit UAbout;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls, ShellApi;
type
TAboutBox = class(TForm)
Version: TLabel;
Comments: TLabel;
PanelMain: TPanel;
Copyright: TLabel;
OKButton: TButton;
LabelLink: TLabel;
ProgramIcon: TImage;
ProductName: TLabel;
procedure LabelLinkClick(Sender: TObject);
end;
var
AboutBox: TAboutBox;
implementation
{$R *.dfm}
procedure TAboutBox.LabelLinkClick(Sender: TObject);
begin
LabelLink.Font.Color := Graphics.clRed;
ShellExecute(Handle, 'open', PChar(LabelLink.Caption),
nil, nil, SW_SHOWNORMAL);
end;
end.