-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfrmAboutUnit.pas
52 lines (42 loc) · 1.16 KB
/
frmAboutUnit.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
unit frmAboutUnit;
interface
uses
Winapi.Windows, System.SysUtils, System.Classes,
Vcl.Controls, Vcl.Forms, Vcl.StdCtrls, ShellApi, Vcl.ComCtrls;
type
TfrmAbout = class(TForm)
Label1: TLabel;
Label2: TLabel;
btnOk: TButton;
RichEdit1: TRichEdit;
procedure Label2Click(Sender: TObject);
procedure Label2MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
procedure Label2MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmAbout: TfrmAbout;
implementation
{$R *.dfm}
procedure TfrmAbout.Label2Click(Sender: TObject);
begin
ShellExecute(handle,'open',PChar('http://nextrandom.com'), '','',SW_SHOWNORMAL);
end;
procedure TfrmAbout.Label2MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
Label2.Top:=Label2.Top+1;
Label2.Left:=Label2.Left+1;
end;
procedure TfrmAbout.Label2MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
Label2.Top:=Label2.Top-1;
Label2.Left:=Label2.Left-1;
end;
end.