mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 20:39:15 +02:00
IDE: update TUnitInfo.ResourceBaseClass on loading lfm
git-svn-id: trunk@37376 -
This commit is contained in:
parent
1971fbf901
commit
f4b2defdfb
@ -6974,6 +6974,12 @@ begin
|
|||||||
NewControl.ControlStyle:=NewControl.ControlStyle+[csNoDesignVisible];
|
NewControl.ControlStyle:=NewControl.ControlStyle+[csNoDesignVisible];
|
||||||
if DisableAutoSize then
|
if DisableAutoSize then
|
||||||
NewControl.EnableAutoSizing;
|
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;
|
end;
|
||||||
Project1.InvalidateUnitComponentDesignerDependencies;
|
Project1.InvalidateUnitComponentDesignerDependencies;
|
||||||
AnUnitInfo.Component:=NewComponent;
|
AnUnitInfo.Component:=NewComponent;
|
||||||
|
Loading…
Reference in New Issue
Block a user