home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Anthology
/
aDELPHI.iso
/
Runimage
/
Delphi50
/
Demos
/
Resxplor
/
about.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1999-08-11
|
971b
|
54 lines
unit About;
interface
uses Windows, Classes, Graphics, Forms, Controls, StdCtrls,
Buttons, ExtCtrls, SysUtils;
type
TAboutBox = class(TForm)
OKButton: TButton;
Panel1: TPanel;
ProgramIcon: TImage;
ProgramName: TLabel;
Copyright: TLabel;
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
AboutBox: TAboutBox;
procedure ShowAboutBox;
implementation
{$R *.DFM}
const
SCopyright = 'Copyright ⌐ 1996, 1998 Borland International';
procedure ShowAboutBox;
begin
with TAboutBox.Create(Application) do
try
ShowModal;
finally
Free;
end;
end;
procedure TAboutBox.FormCreate(Sender: TObject);
begin
Caption := Format('About %s', [Application.Title]);
ProgramIcon.Picture.Assign(Application.Icon);
ProgramName.Caption := Application.Title;
CopyRight.Caption := SCopyRight;
end;
end.