-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathAboutDlg.pas
73 lines (61 loc) · 1.6 KB
/
AboutDlg.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
unit AboutDlg;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics,
Controls, Forms, Dialogs, StdCtrls, Buttons, jpeg, ExtCtrls, ComCtrls;
type
TFAboutDlg=class(TForm)
Panel3: TPanel;
Button2: TButton;
PageControl1: TPageControl;
tsIDR: TTabSheet;
tsCrypto: TTabSheet;
Icon: TImage;
lProduct: TLabel;
Shape1: TShape;
Shape2: TShape;
lVer: TLabel;
lEmail: TLabel;
lWWW: TLabel;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Image1: TImage;
bDonate: TBitBtn;
Label7: TLabel;
Label8: TLabel;
lblHint: TLabel;
procedure FormCreate(Sender : TObject);
procedure lEmailClick(Sender : TObject);
procedure lWWWClick(Sender : TObject);
procedure bDonateClick(Sender : TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FAboutDlg:TFAboutDlg;
implementation
{$R *.DFM}
Uses Misc,ShellAPI;
procedure TFAboutDlg.FormCreate(Sender : TObject);
begin
lVer.Caption:='Version: '+IDRVersion;
end;
procedure TFAboutDlg.lEmailClick(Sender : TObject);
begin
ShellExecute(Handle,'open','mailto:[email protected]',Nil,Nil,SHOW_OPENWINDOW);
end;
procedure TFAboutDlg.lWWWClick(Sender : TObject);
begin
ShellExecute(Handle,'open','http://kpnc.org/idr32/en/',Nil,Nil,SHOW_OPENWINDOW);
end;
procedure TFAboutDlg.bDonateClick(Sender : TObject);
begin
ShellExecute(Handle,'open','http://kpnc.org/idr32/en/donation.htm',Nil,Nil,SHOW_OPENWINDOW);
end;
end.