M
mis11
Unregistered / Unconfirmed
GUEST, unregistred user!
unit Plzl1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, Buttons;
type
TPlzl1 = class(TPanel)
private
FaCaption:string;
function getaCaption: string;
procedure setaCaption(Value: string);
protected
public
procedure ff;
constructor Create(AOwner: TComponent);override;
published
{ Published declarations }
property aCaption: string read getaCaption write setaCaption;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Standard', [TPlzl1]);
end;
function Tplzl1.getaCaption: string;
begin
result := FaCaption
end;
procedure Tplzl1.setaCaption(Value: string);
begin
FaCaption := Value
end;
constructor TPlzl1.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
ff;
end;
procedure tplzl1.ff;
var
SB1: TSpeedButton;
begin
SB1 := TSpeedButton.Create(self);
sb1.Height := 30;
sb1.Width := 75;
sb1.Flat := true;
sb1.Parent := self;
sb1.Caption := aCaption;
end;
end.
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ExtCtrls, Buttons;
type
TPlzl1 = class(TPanel)
private
FaCaption:string;
function getaCaption: string;
procedure setaCaption(Value: string);
protected
public
procedure ff;
constructor Create(AOwner: TComponent);override;
published
{ Published declarations }
property aCaption: string read getaCaption write setaCaption;
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Standard', [TPlzl1]);
end;
function Tplzl1.getaCaption: string;
begin
result := FaCaption
end;
procedure Tplzl1.setaCaption(Value: string);
begin
FaCaption := Value
end;
constructor TPlzl1.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
ff;
end;
procedure tplzl1.ff;
var
SB1: TSpeedButton;
begin
SB1 := TSpeedButton.Create(self);
sb1.Height := 30;
sb1.Width := 75;
sb1.Flat := true;
sb1.Parent := self;
sb1.Caption := aCaption;
end;
end.