unit Toplabel
........
TToplabel=class(TLabel)
private
....
public
constructor Create(AOwner:TComponent);override;
end;
...........
constructor Create(AOwner:TComponent);
var
AButton:TButton;
begin
inherited;
AButton := TButton.Create(AOwner);
AButton.Name := 'MyButton';
AButton.Parent := AOwner;
AButton.Top := 20;
AButton.Left := 20;
AButton.Width := 100;
AButton.Height := 30;
AButton.Caption := 'Button';
end;