Browse Source

Fix issue with object inspector: subcomponents are not editable

Melchiorre Caruso 10 months ago
parent
commit
4eba0b3f84
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bcmaterialedit.pas

+ 2 - 2
bcmaterialedit.pas

@@ -792,8 +792,8 @@ end;
 
 constructor TBCMaterialEditBase.Create(AOwner: TComponent);
 begin
-  FEdit := T.Create(nil);
-  FLabel := TBoundLabel.Create(nil);
+  FEdit := T.Create(Self);
+  FLabel := TBoundLabel.Create(Self);
   inherited Create(AOwner);
   Self.AccentColor := clHighlight;
   Self.BorderStyle := bsNone;