mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 19:00:34 +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];
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user