C
chbqq
Unregistered / Unconfirmed
GUEST, unregistred user!
TT=class(TButton)
public
Ed:TEdit;
Constructor Create;
end;
var
Form1: TForm1;
TA:TT;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
TA:=TT.Create;
TA.Parent:=Self;
TA.SetBounds(0,0,100,100);
TA.Show;
end;
{ TT }
constructor TT.Create;
begin
Ed:=TEdit.Create(Form1);
Ed.Parent:=Form1;
Ed.SetBounds(5,5,50,20);
Ed.Show;
end;
请问哪里错?
[&# 83;mg&# 093;http://i0.5ilog.com/mybbs/42/46/9b/sys/k/751862.jpg[/img]
public
Ed:TEdit;
Constructor Create;
end;
var
Form1: TForm1;
TA:TT;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
TA:=TT.Create;
TA.Parent:=Self;
TA.SetBounds(0,0,100,100);
TA.Show;
end;
{ TT }
constructor TT.Create;
begin
Ed:=TEdit.Create(Form1);
Ed.Parent:=Form1;
Ed.SetBounds(5,5,50,20);
Ed.Show;
end;
请问哪里错?
[&# 83;mg&# 093;http://i0.5ilog.com/mybbs/42/46/9b/sys/k/751862.jpg[/img]