| Line | |
|---|
| 1 | unit About;
|
|---|
| 2 |
|
|---|
| 3 | interface
|
|---|
| 4 |
|
|---|
| 5 | uses
|
|---|
| 6 | Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
|---|
| 7 | Dialogs, StdCtrls, ExtCtrls, Shellapi;
|
|---|
| 8 |
|
|---|
| 9 | type
|
|---|
| 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 |
|
|---|
| 31 | var
|
|---|
| 32 | Form3: TForm3;
|
|---|
| 33 |
|
|---|
| 34 | implementation
|
|---|
| 35 |
|
|---|
| 36 | uses Main;
|
|---|
| 37 |
|
|---|
| 38 | {$R *.dfm}
|
|---|
| 39 |
|
|---|
| 40 | procedure TForm3.FormCreate(Sender: TObject);
|
|---|
| 41 | begin
|
|---|
| 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;
|
|---|
| 49 | end;
|
|---|
| 50 |
|
|---|
| 51 | procedure TForm3.Label6Click(Sender: TObject);
|
|---|
| 52 | begin
|
|---|
| 53 | Form1.ShowWeb;
|
|---|
| 54 | end;
|
|---|
| 55 |
|
|---|
| 56 | procedure TForm3.Label4Click(Sender: TObject);
|
|---|
| 57 | begin
|
|---|
| 58 | ShellExecute(Handle, 'open', PChar('mailto:' + AuthorEmail), nil, nil, SW_SHOWNORMAL);
|
|---|
| 59 | end;
|
|---|
| 60 |
|
|---|
| 61 | procedure TForm3.Button1Click(Sender: TObject);
|
|---|
| 62 | begin
|
|---|
| 63 | //zjištění aktualizace
|
|---|
| 64 | if Form1.NeedUpdate then
|
|---|
| 65 | Form1.ProcedureUpdateApplication
|
|---|
| 66 | else ShowMessage('Máte nejnovější verzi programu.');
|
|---|
| 67 |
|
|---|
| 68 | end;
|
|---|
| 69 |
|
|---|
| 70 | end.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.