if you use Delphi4.0 or up you can set the Component's Anchors property.
if you want to resize this component in formResize event,first you must
save this compoent in someplace, e.g
TForm1=calss(TForm)
private
MyComponentList : TStringList;
end;TFrom1.FormCreate(Sender:TObject);
begin
// Create a compnent and name it
MyComonentList.AddObject('a',TheComponet);
end;
Then in FormResize Event you can use MyComponetList.Objects[I] to Reference it.or you can use self.Components instead of MyComponentList.
if you want to resize this component in formResize event,first you must
save this compoent in someplace, e.g
TForm1=calss(TForm)
private
MyComponentList : TStringList;
end;TFrom1.FormCreate(Sender:TObject);
begin
// Create a compnent and name it
MyComonentList.AddObject('a',TheComponet);
end;
Then in FormResize Event you can use MyComponetList.Objects[I] to Reference it.or you can use self.Components instead of MyComponentList.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货