source: trunk/About.pas

Last change on this file was 14, checked in by george, 15 years ago
  • Upraveno: Informace o nových verzích umístěny do souboru ReleaseNotes.txt.
File size: 1.4 KB
Line 
1unit About;
2
3interface
4
5uses
6 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
7 Dialogs, StdCtrls, ExtCtrls, Shellapi;
8
9type
10 TForm3 = class(TForm)
11 Memo1: TMemo;
12 Label1: TLabel;
13 Label2: TLabel;
14 Label3: TLabel;
15 Label4: TLabel;
16 Label5: TLabel;
17 Image1: TImage;
18 Label6: TLabel;
19 Label7: TLabel;
20 Button1: TButton;
21 procedure FormCreate(Sender: TObject);
22 procedure Label6Click(Sender: TObject);
23 procedure Label4Click(Sender: TObject);
24 procedure Button1Click(Sender: TObject);
25 private
26 { Private declarations }
27 public
28 { Public declarations }
29 end;
30
31var
32 Form3: TForm3;
33
34implementation
35
36uses Main;
37
38{$R *.dfm}
39
40procedure TForm3.FormCreate(Sender: TObject);
41begin
42 Label4.Caption := AuthorEmail;
43 Label6.Caption := ProjectHomepage;
44 Label2.Caption := 'Verze: ' + ApplicationVersion;
45 try
46 Memo1.Lines.LoadFromFile('ReleaseNotes.txt');
47 except
48 end;
49end;
50
51procedure TForm3.Label6Click(Sender: TObject);
52begin
53 Form1.ShowWeb;
54end;
55
56procedure TForm3.Label4Click(Sender: TObject);
57begin
58 ShellExecute(Handle, 'open', PChar('mailto:' + AuthorEmail), nil, nil, SW_SHOWNORMAL);
59end;
60
61procedure TForm3.Button1Click(Sender: TObject);
62begin
63 //zjištění aktualizace
64 if Form1.NeedUpdate then
65 Form1.ProcedureUpdateApplication
66 else ShowMessage('Máte nejnovější verzi programu.');
67
68end;
69
70end.
Note: See TracBrowser for help on using the repository browser.