DunitAbout.pas
上传用户:yjb1804
上传日期:2021-01-30
资源大小:3105k
文件大小:3k
- { $Id: DunitAbout.pas,v 1.4 2006/07/19 02:45:54 judc Exp $ }
- {: DUnit: An XTreme testing framework for Delphi programs.
- @author The DUnit Group.
- @version $Revision: 1.4 $ 2001/03/08 uberto
- }
- (*
- * The contents of this file are subject to the Mozilla Public
- * License Version 1.1 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS
- * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * The Original Code is DUnit.
- *
- * The Initial Developers of the Original Code are Kent Beck, Erich Gamma,
- * and Juancarlo A眅z.
- * Portions created The Initial Developers are Copyright (C) 1999-2000.
- * Portions created by The DUnit Group are Copyright (C) 2000-2003.
- * All rights reserved.
- *
- * Contributor(s):
- * Kent Beck <kentbeck@csi.com>
- * Erich Gamma <Erich_Gamma@oti.com>
- * Juanco A馿z <juanco@users.sourceforge.net>
- * The DUnit group at SourceForge <http://dunit.sourceforge.net>
- *
- *)
- unit DUnitAbout;
- interface
- uses
- Messages, Classes, Graphics, Controls, Forms, StdCtrls, ExtCtrls;
- const
- rcs_id :string = '#(@)$Id: DunitAbout.pas,v 1.4 2006/07/19 02:45:54 judc Exp $';
- type
- TDUnitAboutBox = class(TForm)
- MainPanel: TPanel;
- NamePanel: TPanel;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- IdentMemo: TMemo;
- Credits: TMemo;
- Timer: TTimer;
- LogoPanel: TPanel;
- LogoImage: TImage;
- procedure FormClose(Sender: TObject; var Action: TCloseAction);
- procedure TimerTimer(Sender: TObject);
- procedure MainPanelClick(Sender: TObject);
- procedure FormKeyDown(Sender: TObject; var Key: Word;
- Shift: TShiftState);
- procedure FormCreate(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- procedure Splash;
-
- implementation
- uses
- SysUtils;
- {$R *.DFM}
- const
- {$include versioninfo.inc }
- procedure TDUnitAboutBox.FormClose(Sender: TObject; var Action: TCloseAction);
- begin
- Action := caFree;
- end;
- procedure TDUnitAboutBox.TimerTimer(Sender: TObject);
- begin
- Close;
- end;
- procedure TDUnitAboutBox.MainPanelClick(Sender: TObject);
- begin
- Close;
- end;
- procedure TDUnitAboutBox.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
- begin
- Close;
- end;
- procedure Splash;
- begin
- with TDUnitAboutBox.Create(nil) do
- begin
- FormStyle := fsStayOnTop;
- Show;
- Update;
- Timer.Enabled := True;
- end;
- end;
- procedure TDUnitAboutBox.FormCreate(Sender: TObject);
- begin
- IdentMemo.Lines[2] := Format('v %s', [ReleaseStr]);
- end;
- end.