unit UnitAbout;
{$I Asta.inc}
interface
uses classes,
{$ifdef Delphi6AndUp}
DesignEditors, DesignIntf
{$else}
DsgnIntf
{$endif};
Type
TfcAboutPropertyEditor = class(TPropertyEditor)
public
procedure Edit; override;
function GetAttributes: TPropertyAttributes; override;
function GetValue:string; override;
end;
implementation
uses UnitAboutBox;
procedure TfcAboutPropertyEditor.Edit;
begin
AboutBox:=TAboutBox.Create(nil);
AboutBox.ShowModal;
AboutBox.Free;
end;
function TfcAboutPropertyEditor.GetAttributes: TPropertyAttributes;
begin
GetAttributes := [paDialog, paReadOnly];
end;
function TfcAboutPropertyEditor.GetValue: String;
begin
GetValue := 'Version 1.0';
end;
end.