Design Time components on a Sub Panel lazarus / 31-LCL ---------------------------------------------------------------------- MaxM74 · 2016-03-17 18:20 I Have writed a Component derived from TPanel  (that we call Main- Panel), this new Control contain 2  sub Control : 1) A Speed Button (that we call Button) 2) A TPanel (that we call Sub-Panel) now... When i Add at Design Time an Editor (for example) inside the Main- Panel i want to move it directly to the Sub-Panel but the Editor is always placed inside the Main-Panel. I have :      TMainPanel           Button           Sub-Panel           Edit1 I want :      TMainPanel           Button           Sub-Panel                  Edit1 There is a Solution to do This? I Have tried Declaring Button and Sub- Panel as published property but nothing.... Thanks. ---------------------------------------------------------------------- wp · 2016-03-17 18:38 You want the Edit to be a child of the SubPanel? Go to the object tree (above the object inspector). Drag the Edit underneath the SubPanel. Release the mouse button when the insertion line is immediately underneath the SubPanel. Note that the Edit will keep its Left/Top values, i.e. it may jump out of view if the SubPanel is too small. You'll see it in the form designer being marked by the four corner points, but you cannot drag it with the mouse any more - just re- adjust Left and Top of the Edit to bring it back. Alternatively you can cut the Edit from the MainPanel and paste it back into the Subpanel. This has the advantage that the control position is adjusted such that it does not leave its new parent control. But I've seen issues sometimes with this procedure, I can't remember any details, and maybe they are solved in the meantime, I don't know. ---------------------------------------------------------------------- MaxM74 · 2016-03-17 22:08 I Think you have not understand the question. When the User Put a new component on the Panel it must become a Child of the Sub-Panel directly changing it's Parent (so this new Tree is stored on the LFM and loaded at runtime). ---------------------------------------------------------------------- wp · 2016-03-17 22:40 No I don't understand. When you add a control to a panel it will be a child of it, it will never be a child of another panel ("subpanel") which happens to be on the same parent panel. You have to fix that manually in the way I described.