-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm_About.pas
54 lines (43 loc) · 1.3 KB
/
Form_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
unit Form_About;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Winapi.ShellAPI,
Vcl.Imaging.pngimage, Vcl.ExtCtrls;
type
TFormAbout = class(TForm)
lblText: TLabel;
lblGitHub: TLabel;
imgIcon: TImage;
lblIcon: TLabel;
lblYusuke: TLabel;
procedure lblGitHubClick(Sender: TObject);
procedure LinkLabelMouseEnter(Sender: TObject);
procedure LinkLabelMouseLeave(Sender: TObject);
procedure lblYusukeClick(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
FormAbout: TFormAbout;
implementation
{$R *.dfm}
procedure TFormAbout.lblGitHubClick(Sender: TObject);
begin
ShellExecute(0, 'open', 'https://github.com/LFriede/ip-change-notification', nil, nil, SW_SHOWNORMAL);
end;
procedure TFormAbout.lblYusukeClick(Sender: TObject);
begin
ShellExecute(0, 'open', 'https://p.yusukekamiyamane.com', nil, nil, SW_SHOWNORMAL);
end;
procedure TFormAbout.LinkLabelMouseEnter(Sender: TObject);
begin
TLabel(Sender).Font.Style := [];
end;
procedure TFormAbout.LinkLabelMouseLeave(Sender: TObject);
begin
TLabel(Sender).Font.Style := [fsUnderline];
end;
end.