Subversion Repositories spacemission

Rev

Rev 1 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 daniel-mar 1
unit SplInfo;
2
 
3
interface
4
 
5
uses
6
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
7
  StdCtrls, ShellAPI, ExtCtrls;
8
 
9
type
10
  TInfoForm = class(TForm)
2 daniel-mar 11
    OkBtn: TButton;
1 daniel-mar 12
    HomeLbl: TLabel;
13
    Image: TImage;
14
    FirmaLbl: TLabel;
15
    NameLbl: TLabel;
16
    VersionLbl: TLabel;
17
    EMailLbl: TLabel;
18
    CopyrightLbl: TLabel;
19
    Copyright2Lbl: TLabel;
20
    URL2: TLabel;
21
    URL1: TLabel;
2 daniel-mar 22
    procedure OkBtnClick(Sender: TObject);
1 daniel-mar 23
    procedure FormCreate(Sender: TObject);
24
    procedure URL2Click(Sender: TObject);
25
    procedure URL1Click(Sender: TObject);
26
  end;
27
 
28
var
29
  InfoForm: TInfoForm;
30
 
31
implementation
32
 
33
uses
2 daniel-mar 34
  Global;
1 daniel-mar 35
 
36
{$R *.DFM}
37
 
2 daniel-mar 38
procedure TInfoForm.OkBtnClick(Sender: TObject);
1 daniel-mar 39
begin
40
  close;
41
end;
42
 
43
procedure TInfoForm.FormCreate(Sender: TObject);
44
begin
2 daniel-mar 45
  VersionLbl.caption := 'Version ' + ProgramVersion;
46
  image.picture.loadfromfile(FDirectory + 'Bilder\Delphi.bmp');
1 daniel-mar 47
end;
48
 
49
procedure TInfoForm.URL2Click(Sender: TObject);
50
begin
51
  shellexecute(application.Handle, 'open', pchar('http://'+url2.caption+'/'), nil, nil, SW_SHOW);
52
end;
53
 
54
procedure TInfoForm.URL1Click(Sender: TObject);
55
begin
2 daniel-mar 56
  shellexecute(application.Handle, 'open', pchar('mailto:'+url1.Caption+'?subject=SpaceMission ' + ProgramVersion), nil, nil, SW_SHOW);
1 daniel-mar 57
end;
58
 
59
end.
60