mirror of
https://github.com/ngeor/Chameleon.git
synced 2025-12-19 09:53:43 +01:00
51 lines
827 B
ObjectPascal
51 lines
827 B
ObjectPascal
unit about1;
|
|
|
|
{$MODE Delphi}
|
|
|
|
interface
|
|
|
|
uses SysUtils, Classes, Graphics, Forms, Controls, StdCtrls,
|
|
Buttons, ExtCtrls, fileinfo;
|
|
|
|
type
|
|
|
|
{ TAboutBox }
|
|
|
|
TAboutBox = class(TForm)
|
|
Panel1: TPanel;
|
|
ProductName: TLabel;
|
|
Version: TLabel;
|
|
Copyright: TLabel;
|
|
Comments: TLabel;
|
|
OKButton: TButton;
|
|
procedure FormCreate(Sender: TObject);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
AboutBox: TAboutBox;
|
|
|
|
implementation
|
|
|
|
{$R *.lfm}
|
|
|
|
{ TAboutBox }
|
|
|
|
procedure TAboutBox.FormCreate(Sender: TObject);
|
|
var
|
|
FileVerInfo: TFileVersionInfo;
|
|
begin
|
|
FileVerInfo := TFileVersionInfo.Create(nil);
|
|
try
|
|
FileVerInfo.ReadFileInfo;
|
|
Version.Caption := 'Version ' + FileVerInfo.VersionStrings.Values['FileVersion'];
|
|
finally
|
|
FileVerInfo.Free;
|
|
end;
|
|
end;
|
|
|
|
end.
|