forked from hkociemba/CubeExplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
About.pas
54 lines (45 loc) · 1.57 KB
/
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 About;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls;
type
//++++++++++++++++++++++++++Help/About dialog box+++++++++++++++++++++++++++++++
TAboutForm = class(TForm)
Button1: TButton;
Bevel1: TBevel;
Label1: TLabel;
Label2: TLabel;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure Label2Click(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
var
AboutForm: TAboutForm;
implementation
uses ShellAPI,CubeDefs;
{$R *.DFM}
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
procedure TAboutForm.Button1Click(Sender: TObject);
begin
Hide;
end;
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
procedure TAboutForm.FormCreate(Sender: TObject);
begin
Label1.Caption:=curVersion+#13+#13+copyright;
end;
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++Send Email++++++++++++++++++++++++++++++++++++++++++++++++++
procedure TAboutForm.Label2Click(Sender: TObject);
begin
ShellExecute(handle,'open',PChar('mailto:[email protected]?subject='+curVersion),nil,nil,SW_SHOWNORMAL);
end;
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
end.