You've already forked lazarus-ccr
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7450 8e941d3f-bd1b-0410-a28a-d453659cc2b4
65 lines
927 B
ObjectPascal
65 lines
927 B
ObjectPascal
unit AboutUnit;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
|
|
StdCtrls, ExtCtrls;
|
|
|
|
type
|
|
|
|
{ TAboutBox }
|
|
|
|
TAboutBox = class(TForm)
|
|
Image1: TImage;
|
|
Label1: TLabel;
|
|
Label2: TLabel;
|
|
Label3: TLabel;
|
|
Label4: TLabel;
|
|
OKButton: TButton;
|
|
Panel1: TPanel;
|
|
procedure FormCreate(Sender: TObject);
|
|
private
|
|
{ Private declarations }
|
|
public
|
|
{ Public declarations }
|
|
end;
|
|
|
|
var
|
|
AboutBox: TAboutBox;
|
|
|
|
procedure ShowAboutBox;
|
|
|
|
|
|
implementation
|
|
|
|
uses
|
|
Types;
|
|
|
|
procedure ShowAboutBox;
|
|
begin
|
|
with TAboutBox.Create(nil) do
|
|
try
|
|
ShowModal;
|
|
finally
|
|
Free;
|
|
end;
|
|
end;
|
|
|
|
{ TAboutBox }
|
|
|
|
procedure TAboutBox.FormCreate(Sender: TObject);
|
|
begin
|
|
Image1.Picture.Icon := Application.Icon;
|
|
Image1.Picture.Icon.Current := Application.Icon.GetBestIndexForSize(Size(256,256));
|
|
end;
|
|
|
|
|
|
initialization
|
|
{$I aboutunit.lrs}
|
|
|
|
end.
|
|
|