home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Expert 29
/
Pce29cd.iso
/
RUNIMAGE
/
DELPHI40
/
DEMOS
/
IPCDEMOS
/
ABOUT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-06-16
|
858b
|
50 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}
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;
end;
end.