为什么不在设计期就把属性设好?
var
i:integer;
begin
for i:=0 to ComponentCount-1do
if Components is TbsGraphicSkinControl then
TbsGraphicSkinControl(Components).SkinData:=bsSkinData1
else
if Components is TbsCustomEdit then
TbsCustomEdit(Components).SkinData:=bsSkinData1
else
if Components is TbsSkinControl then
TbsSkinControl(Components).SkinData:=bsSkinData1
else
if Components is TbsSkinBevel then
TbsSkinBevel(Components).SkinData:=bsSkinData1
else
if Components is TbsSkinMemo then
TbsSkinMemo(Components).SkinData:=bsSkinData1;
end;