没有必要用到绝对坐标,你在创建的时候,指定创建的Panel.Parent为你所需要的Panel即可,那么创建的Panel的坐标就是相对于Parent的啦!!!!
例如:
Panel:=TPanel.Create(self);
Panel.Parent:=Panel1;
Panel.Left:=2;///相对于Panel1的坐标~~~~~~~~~~~~~~~:)
....
例如:
Panel:=TPanel.Create(self);
Panel.Parent:=Panel1;
Panel.Left:=2;///相对于Panel1的坐标~~~~~~~~~~~~~~~:)
....
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货