forked from pyscripter/pyscripter
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdlgAboutPyScripter.pas
93 lines (79 loc) · 2.39 KB
/
dlgAboutPyScripter.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
82
83
84
85
86
87
88
89
90
91
92
93
{-----------------------------------------------------------------------------
Unit Name: dlgAboutPyScripter
Author: Kiriakos Vlahos
Date: 09-Mar-2005
Purpose: PyScripter About box
History:
-----------------------------------------------------------------------------}
unit dlgAboutPyScripter;
interface
uses Windows, SysUtils, Classes, Graphics, Forms, Controls,
Buttons, JvLinkLabel, JvExControls, ExtCtrls,
dlgPyIDEBase, SpTBXControls, SpTBXItem, SpTBXTabs, TB2Item, SpTBXPageScroller;
type
TAboutBox = class(TPyIDEDlgBase)
ScrollBox1: TScrollBox;
JvLinkLabel1: TJvLinkLabel;
Panel1: TSpTBXPanel;
ProgramIcon: TImage;
Copyright: TSpTBXLabel;
Comments: TSpTBXLabel;
Version: TSpTBXLabel;
ProductName: TSpTBXLabel;
SpTBXTabControl1: TSpTBXTabControl;
tbAbout: TSpTBXTabItem;
SpTBXTabSheet1: TSpTBXTabSheet;
tbCredits: TSpTBXTabItem;
SpTBXTabSheet2: TSpTBXTabSheet;
tbLinks: TSpTBXTabItem;
SpTBXTabSheet3: TSpTBXTabSheet;
ScrollBox: TSpTBXPageScroller;
JvLinkLabel: TJvLinkLabel;
procedure Panel1Click(Sender: TObject);
procedure JvLinkLabelLinkClick(Sender: TObject; LinkNumber: Integer;
LinkText, LinkParam: String);
procedure FormCreate(Sender: TObject);
procedure FormKeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
public
{ Public declarations }
end;
var
AboutBox: TAboutBox;
implementation
uses
uCommonFunctions, JvJCLUtils, gnugettext;
{$R *.dfm}
procedure TAboutBox.Panel1Click(Sender: TObject);
begin
Close;
end;
procedure TAboutBox.FormKeyPress(Sender: TObject; var Key: Char);
begin
if Key = #27 then
Close;
end;
procedure TAboutBox.JvLinkLabelLinkClick(Sender: TObject;
LinkNumber: Integer; LinkText, LinkParam: String);
begin
OpenObject('http://'+LinkText);
end;
procedure TAboutBox.FormCreate(Sender: TObject);
Var
winplatform : string;
begin
{$IFDEF WIN64}
winplatform := 'x64';
{$ELSE}
winplatform := 'x86';
{$ENDIF}
inherited;
Version.Caption := Format('Version %s %s', [ApplicationVersion, winplatform]);
end;
initialization
TP_GlobalIgnoreClass (TJvLinkLabel);
TP_GlobalIgnoreClassProperty(TAboutBox, 'Copyright');
TP_GlobalIgnoreClassProperty(TAboutBox, 'Version');
TP_GlobalIgnoreClassProperty(TAboutBox, 'ProductName');
end.