source: tags/1.1.0/Forms/UFormAbout.pas

Last change on this file was 22, checked in by chronos, 8 years ago
  • Added: Now import formats can be specified using new edit windows.
  • Added: Import source can now be downloaded and processed including download from https URLs.
File size: 1.3 KB
Line 
1unit UFormAbout;
2
3{$mode delphi}
4
5interface
6
7uses
8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus,
9 StdCtrls, UApplicationInfo, UCommon;
10
11type
12
13 { TFormAbout }
14
15 TFormAbout = class(TForm)
16 ApplicationInfo1: TApplicationInfo;
17 ButtonHomePage: TButton;
18 ButtonClose: TButton;
19 LabelAppName: TLabel;
20 LabelDescription: TLabel;
21 LabelContent: TLabel;
22 procedure ButtonHomePageClick(Sender: TObject);
23 procedure FormCreate(Sender: TObject);
24 procedure FormShow(Sender: TObject);
25 private
26 { private declarations }
27 public
28 { public declarations }
29 end;
30
31var
32 FormAbout: TFormAbout;
33
34implementation
35
36{$R *.lfm}
37
38resourcestring
39 SVersion = 'Version';
40 SReleaseDate = 'Release date';
41 SLicense = 'License';
42
43{ TFormAbout }
44
45procedure TFormAbout.FormShow(Sender: TObject);
46begin
47 LabelAppName.Caption := ApplicationInfo1.AppName;
48 LabelContent.Caption := SVersion + ': ' + ApplicationInfo1.Version + LineEnding +
49 SReleaseDate + ': ' + DateToStr(ApplicationInfo1.ReleaseDate) + LineEnding +
50 SLicense + ': ' + ApplicationInfo1.License;
51end;
52
53procedure TFormAbout.ButtonHomePageClick(Sender: TObject);
54begin
55 OpenWebPage(ApplicationInfo1.HomePage);
56end;
57
58procedure TFormAbout.FormCreate(Sender: TObject);
59begin
60
61end;
62
63end.
64
Note: See TracBrowser for help on using the repository browser.