-
Notifications
You must be signed in to change notification settings - Fork 0
/
FormAbout.pas
81 lines (70 loc) · 2.1 KB
/
FormAbout.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
74
75
76
77
78
79
80
81
{**
DelphiPI (Delphi Package Installer)
Author : ibrahim dursun (ibrahimdursun gmail)
License : GNU General Public License 2.0
**}
unit FormAbout;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TfrmAbout = class(TForm)
grpInformation: TGroupBox;
Label7: TLabel;
Image2: TImage;
lblVersion: TLabel;
Label9: TLabel;
Label10: TLabel;
Label11: TLabel;
lblAuthorsWebsite: TLabel;
lblProjectWebsite: TLabel;
Label2: TLabel;
lblAuthor: TLabel;
pnlBottom: TPanel;
btnDonate: TButton;
btnClose: TButton;
Bevel1: TBevel;
procedure btnCloseClick(Sender: TObject);
procedure lblAuthorsWebsiteClick(Sender: TObject);
procedure lblProjectWebsiteClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure btnDonateClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmAbout: TfrmAbout;
implementation
uses ShellApi, gnugettext, Utils;
const
donationAddress =
'https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ibrahim'+
'%2edursun%40gmail%2ecom&item_name=delphipi&no_shipping=0&no_note=1'+
'&tax=0¤cy_code=USD&lc=TR&bn=PP%2dDonationsBF&charset=UTF%2d8';
{$R *.dfm}
procedure TfrmAbout.btnDonateClick(Sender: TObject);
begin
ShellExecute(0,'open',PWideChar(donationAddress), NIL, NIL, SW_SHOWNORMAL);
end;
procedure TfrmAbout.btnCloseClick(Sender: TObject);
begin
Close;
end;
procedure TfrmAbout.FormCreate(Sender: TObject);
begin
TranslateComponent(self);
lblVersion.Caption :=Format('%s ''%s''', [Utils.VERSION, Utils.CODE]);
lblAuthor.Caption := Utils.AUTHOR;
end;
procedure TfrmAbout.lblAuthorsWebsiteClick(Sender: TObject);
begin
ShellExecute(0,'open',PWideChar(lblAuthorsWebsite.Caption), NIL, NIL, SW_SHOWNORMAL);
end;
procedure TfrmAbout.lblProjectWebsiteClick(Sender: TObject);
begin
ShellExecute(0,'open',PWideChar(lblProjectWebsite.Caption), NIL, NIL, SW_SHOWNORMAL);
end;
end.