IDE: update TUnitInfo.ResourceBaseClass on loading lfm

git-svn-id: trunk@37376 -
This commit is contained in:
mattias 2012-05-21 12:35:31 +00:00
parent 1971fbf901
commit f4b2defdfb

View File

@ -6974,6 +6974,12 @@ begin
NewControl.ControlStyle:=NewControl.ControlStyle+[csNoDesignVisible];
if DisableAutoSize then
NewControl.EnableAutoSizing;
if NewComponent is TFrame then
AnUnitInfo.ResourceBaseClass:=pfcbcFrame
else if NewComponent is TDataModule then
AnUnitInfo.ResourceBaseClass:=pfcbcDataModule
else if NewComponent is TForm then
AnUnitInfo.ResourceBaseClass:=pfcbcForm;
end;
Project1.InvalidateUnitComponentDesignerDependencies;
AnUnitInfo.Component:=NewComponent;