2020-03-30 18:01:44 +00:00
|
|
|
unit AboutUnit;
|
|
|
|
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
|
|
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
|
|
|
|
StdCtrls, ExtCtrls;
|
|
|
|
|
|
|
|
type
|
|
|
|
|
|
|
|
{ TAboutBox }
|
|
|
|
|
|
|
|
TAboutBox = class(TForm)
|
2020-05-11 20:31:43 +00:00
|
|
|
Image1: TImage;
|
2020-03-30 18:01:44 +00:00
|
|
|
Label1: TLabel;
|
|
|
|
Label2: TLabel;
|
|
|
|
Label3: TLabel;
|
2020-05-11 20:31:43 +00:00
|
|
|
Label4: TLabel;
|
2020-03-30 18:01:44 +00:00
|
|
|
OKButton: TButton;
|
|
|
|
Panel1: TPanel;
|
2020-05-11 20:31:43 +00:00
|
|
|
procedure FormCreate(Sender: TObject);
|
2020-03-30 18:01:44 +00:00
|
|
|
private
|
|
|
|
{ Private declarations }
|
|
|
|
public
|
|
|
|
{ Public declarations }
|
|
|
|
end;
|
|
|
|
|
|
|
|
var
|
|
|
|
AboutBox: TAboutBox;
|
|
|
|
|
|
|
|
procedure ShowAboutBox;
|
|
|
|
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
2020-05-11 20:31:43 +00:00
|
|
|
uses
|
|
|
|
Types;
|
|
|
|
|
2020-03-30 18:01:44 +00:00
|
|
|
procedure ShowAboutBox;
|
|
|
|
begin
|
|
|
|
with TAboutBox.Create(nil) do
|
|
|
|
try
|
|
|
|
ShowModal;
|
|
|
|
finally
|
|
|
|
Free;
|
|
|
|
end;
|
|
|
|
end;
|
|
|
|
|
2020-05-11 20:31:43 +00:00
|
|
|
{ TAboutBox }
|
|
|
|
|
|
|
|
procedure TAboutBox.FormCreate(Sender: TObject);
|
|
|
|
begin
|
|
|
|
Image1.Picture.Icon := Application.Icon;
|
|
|
|
Image1.Picture.Icon.Current := Application.Icon.GetBestIndexForSize(Size(256,256));
|
|
|
|
end;
|
|
|
|
|
2020-03-30 18:01:44 +00:00
|
|
|
|
|
|
|
initialization
|
|
|
|
{$I aboutunit.lrs}
|
|
|
|
|
|
|
|
end.
|
|
|
|
|