source: branches/test1/Client/Forms/UFormAbout.pas

Last change on this file was 46, checked in by chronos, 13 years ago
File size: 1.2 KB
Line 
1unit UFormAbout;
2
3{$MODE Delphi}
4
5interface
6
7uses
8 SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
9 Buttons, ExtCtrls, UApplicationInfo;
10
11type
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
28var
29 AboutForm: TAboutForm;
30
31implementation
32
33resourcestring
34 SApplicationName = 'Application name';
35 SVersion = 'Version';
36 SReleaseDate = 'Release date';
37 SManufacturer = 'Company';
38 SEmail = 'E-mail';
39
40{$R *.lfm}
41
42procedure TAboutForm.FormShow(Sender: TObject);
43begin
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);
56end;
57
58procedure TAboutForm.OKButtonClick(Sender: TObject);
59begin
60 Close;
61end;
62
63end.
64
Note: See TracBrowser for help on using the repository browser.