[*菜鸟问题*]继承自多个类,不同类的相对位置问题
何鲁青 2005-02-17 03:09:13 自己写了一个类
type
TNewPic = class(TImage)
private
public
Fcaption: Tlabel;
constructor Create(AOwner: TComponent); override;
end;
implementation
constructor TNewPic.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
self.Fcaption:=Tlabel.Create(self);
self.Fcaption.Caption:='';
self.Parent:= AOwner as TWinControl;
self.Fcaption.Parent:= AOwner as TWinControl;
end;
目的想要给图片加上一个标题
怎样才能保证标题在图片的上方的固定位置哪?
就是说改变其left top值的时候不仅仅是图片的位置改变
标题的位置也随之改变