我创建了一个自定义Tpanel并在里面放置了各种自定义组件......procedurePanel_Comp(Location:TWinControl;NumOfComp:Integer;Left,Top,Height,width:Integer);beginMyPanel:=TsPanel.Create(Conf);MyPanel.Name:='MyPanel'+IntToStr(NumOfComp);MyPanel.Parent:=Location;MyPanel.Left:=Left;MyPanel.Top:=Top;MyPanel.Height:=Height;MyPanel.