-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuAbout.pas
57 lines (47 loc) · 1.32 KB
/
uAbout.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
//------------------------------------------------------------------
// SpellCode - Source code spell checking utility.
// Copyright © 2010 Dilshan R Jayakody. <[email protected]>
// http://code.google.com/p/spellcode
//
// SpellCode is distributed under the MIT license.
//------------------------------------------------------------------
unit uAbout;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls, jpeg, shellapi;
type
TfmAbout = class(TForm)
Panel1: TPanel;
btnOK: TButton;
Bevel1: TBevel;
Shape1: TShape;
btnHomePage: TButton;
Image1: TImage;
Label1: TLabel;
lblversion: TLabel;
Label3: TLabel;
Label4: TLabel;
procedure btnHomePageClick(Sender: TObject);
procedure FormKeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
public
{ Public declarations }
end;
var
fmAbout: TfmAbout;
implementation
{$R *.dfm}
procedure TfmAbout.btnHomePageClick(Sender: TObject);
begin
shellexecute(0,'open','http://code.google.com/p/spellcode','','',SW_SHOW);
end;
procedure TfmAbout.FormKeyPress(Sender: TObject; var Key: Char);
begin
if Key = #27 then begin
self.ModalResult := mrOK;
Key := #0;
end;
end;
end.