/[projects]/dao/DelphiScanner/Components/tpsystools_4.04/source/StAbout0.pas
ViewVC logotype

Contents of /dao/DelphiScanner/Components/tpsystools_4.04/source/StAbout0.pas

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2671 - (show annotations) (download)
Tue Aug 25 18:15:15 2015 UTC (8 years, 9 months ago) by torben
File size: 2714 byte(s)
Added tpsystools component
1 (* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1
3 *
4 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/
8 *
9 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the
12 * License.
13 *
14 * The Original Code is TurboPower SysTools
15 *
16 * The Initial Developer of the Original Code is
17 * TurboPower Software
18 *
19 * Portions created by the Initial Developer are Copyright (C) 1996-2002
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 *
24 * ***** END LICENSE BLOCK ***** *)
25
26 {*********************************************************}
27 {* SysTools: StAbout0.pas 4.04 *}
28 {*********************************************************}
29 {* SysTools: Version property "About Box" form *}
30 {*********************************************************}
31
32 {$I StDefine.inc}
33
34 unit StAbout0;
35
36 interface
37
38 uses
39 Windows,
40 {$IFDEF VERSION6}
41 DesignIntf,
42 DesignEditors,
43 {$ELSE}
44 DsgnIntf,
45 {$ENDIF}
46 Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
47 StdCtrls, ExtCtrls, StConst;
48
49 type
50 TStAboutForm = class(TForm)
51 Panel1: TPanel;
52 Image1: TImage;
53 lblVersion: TLabel;
54 btnOK: TButton;
55 Bevel1: TBevel;
56 Label2: TLabel;
57 WebLbl: TLabel;
58 Label3: TLabel;
59 Label7: TLabel;
60 NewsLbl: TLabel;
61 procedure btnOKClick(Sender: TObject);
62 procedure FormCreate(Sender: TObject);
63 private
64 { Private declarations }
65 public
66 { Public declarations }
67 end;
68
69 TStVersionProperty = class(TStringProperty)
70 public
71 function GetAttributes: TPropertyAttributes;
72 override;
73 procedure Edit;
74 override;
75 end;
76
77 implementation
78
79 {$R *.DFM}
80
81
82 {*** TEsVersionProperty ***}
83
84 function TStVersionProperty.GetAttributes: TPropertyAttributes;
85 begin
86 Result := [paDialog, paReadOnly];
87 end;
88
89 procedure TStVersionProperty.Edit;
90 begin
91 with TStAboutForm.Create(Application) do begin
92 try
93 ShowModal;
94 finally
95 Free;
96 end;
97 end;
98 end;
99
100
101 {*** TStAboutForm ***}
102
103 procedure TStAboutForm.btnOKClick(Sender: TObject);
104 begin
105 Close;
106 end;
107
108 procedure TStAboutForm.FormCreate(Sender: TObject);
109 begin
110 Top := (Screen.Height - Height) div 3;
111 Left := (Screen.Width - Width) div 2;
112 lblVersion.Caption := 'Version ' + StVersionStr;
113 end;
114
115 end.

  ViewVC Help
Powered by ViewVC 1.1.20