Statistics
| Branch: | Tag: | Revision:

root / Client / UfrmAbout.pas @ 158:c8f14a3d46ee

History | View | Annotate | Download (1.8 kB)

1
(*
2
 * CDDL HEADER START
3
 *
4
 * The contents of this file are subject to the terms of the
5
 * Common Development and Distribution License, Version 1.0 only
6
 * (the "License").  You may not use this file except in compliance
7
 * with the License.
8
 *
9
 * You can obtain a copy of the license at
10
 * http://www.opensource.org/licenses/cddl1.php.
11
 * See the License for the specific language governing permissions
12
 * and limitations under the License.
13
 *
14
 * When distributing Covered Code, include this CDDL HEADER in each
15
 * file and include the License file at
16
 * http://www.opensource.org/licenses/cddl1.php.  If applicable,
17
 * add the following below this CDDL HEADER, with the fields enclosed
18
 * by brackets "[]" replaced with your own identifying * information:
19
 *      Portions Copyright [yyyy] [name of copyright owner]
20
 *
21
 * CDDL HEADER END
22
 *
23
 *
24
 *      Portions Copyright 2007 Andreas Schneider
25
 *)
26
unit UfrmAbout;
27
28
{$mode objfpc}{$H+}
29
30
interface
31
32
uses
33
  Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, StdCtrls,
34
  ExtCtrls;
35
36
type
37
38
  { TfrmAbout }
39
40
  TfrmAbout = class(TForm)
41
    btnClose: TButton;
42
    Label1: TLabel;
43
    Label3: TLabel;
44
    Label5: TLabel;
45
    Label6: TLabel;
46
    Label7: TLabel;
47
    lblCopyright: TLabel;
48
    lblVersion: TLabel;
49
    Panel1: TPanel;
50
    Panel2: TPanel;
51
    Panel3: TPanel;
52
    procedure btnCloseClick(Sender: TObject);
53
    procedure FormCreate(Sender: TObject);
54
  private
55
    { private declarations }
56
  public
57
    { public declarations }
58
  end; 
59
60
var
61
  frmAbout: TfrmAbout;
62
63
implementation
64
65
{$I version.inc}
66
67
{ TfrmAbout }
68
69
procedure TfrmAbout.btnCloseClick(Sender: TObject);
70
begin
71
  Close;
72
end;
73
74
procedure TfrmAbout.FormCreate(Sender: TObject);
75
begin
76
  lblVersion.Caption := Format('Version %s', [ProductVersion]);
77
  lblCopyright.Caption := Format('Copyright %s', [Copyright]);
78
end;
79
80
initialization
81
  {$I UfrmAbout.lrs}
82
83
end.
84