Line | |
---|
1 | unit UFormAbout;
|
---|
2 |
|
---|
3 | {$MODE Delphi}
|
---|
4 |
|
---|
5 | interface
|
---|
6 |
|
---|
7 | uses
|
---|
8 | SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
|
---|
9 | Buttons, ExtCtrls, UApplicationInfo;
|
---|
10 |
|
---|
11 | type
|
---|
12 |
|
---|
13 | { TAboutForm }
|
---|
14 |
|
---|
15 | TAboutForm = class(TForm)
|
---|
16 | Panel1: TPanel;
|
---|
17 | OKButton: TButton;
|
---|
18 | Image1: TImage;
|
---|
19 | Memo1: TMemo;
|
---|
20 | procedure OKButtonClick(Sender: TObject);
|
---|
21 | procedure FormShow(Sender: TObject);
|
---|
22 | private
|
---|
23 | { Private declarations }
|
---|
24 | public
|
---|
25 | { Public declarations }
|
---|
26 | end;
|
---|
27 |
|
---|
28 | var
|
---|
29 | AboutForm: TAboutForm;
|
---|
30 |
|
---|
31 | implementation
|
---|
32 |
|
---|
33 | resourcestring
|
---|
34 | SApplicationName = 'Application name';
|
---|
35 | SVersion = 'Version';
|
---|
36 | SReleaseDate = 'Release date';
|
---|
37 | SManufacturer = 'Company';
|
---|
38 | SEmail = 'E-mail';
|
---|
39 |
|
---|
40 | {$R *.lfm}
|
---|
41 |
|
---|
42 | procedure TAboutForm.FormShow(Sender: TObject);
|
---|
43 | begin
|
---|
44 | with Memo1, Lines, ApplicationInfo do begin
|
---|
45 | BeginUpdate;
|
---|
46 | Clear;
|
---|
47 | Add(SApplicationName + ': ' + Name);
|
---|
48 | Add(SVersion + ': ' + Version);
|
---|
49 | Add(SReleaseDate + ': ' + DateToStr(ReleaseDate));
|
---|
50 | Add(SManufacturer + ': ' + CompanyName);
|
---|
51 | //Add('Autor: ' + AuthorName);
|
---|
52 | Add(SEmail + ': ' + EmailContact);
|
---|
53 | EndUpdate;
|
---|
54 | end;
|
---|
55 | FocusControl(OKButton);
|
---|
56 | end;
|
---|
57 |
|
---|
58 | procedure TAboutForm.OKButtonClick(Sender: TObject);
|
---|
59 | begin
|
---|
60 | Close;
|
---|
61 | end;
|
---|
62 |
|
---|
63 | end.
|
---|
64 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.