Behavior of subcomponents at design time lazarus / 21-General ---------------------------------------------------------------------- Hacklzwerg · 2025-02-02 17:05 Hello... I'm currently trying to create a new component. None of that is a problem. However, I can't get to grips with the behavior of the IDE: Why can't I select a component that was created within my component (i.e. a subcomponent) with the mouse at design time? I'm currently working with Lazarus 4.0RC2, but I've also tried it with older versions on another computer and with a Raspi, so it can't be the Lazarus version. Everything works at runtime and the components react as desired, but this problem only occurs at design time. It seems to me that the creation of the subcomponent has not yet been completed. Does anyone have a solution for this problem or at least an explanation for this behavior? The 'yellowish', left panel is my written test-component, the orange ones, right side, are 'dragged' from palette to Form SubComp1.png: As you can see from the guide lines, SubPanel1 has been recognized as a component because Panel2 is aligned with it. Panel2 also has all the handles for changing the size, etc. The corresponding name of the component is also displayed in the hint. SubComp2.png: Here the handles are not displayed and the cursor over the subcomponent shows the hint of the parent component. CompTree.png: If you select the component in the component tree of the object inspector, (Subcomp3.png) SubPanel1 is suddenly outlined and receives the resize handles. Thanks in advance! ---------------------------------------------------------------------- Hacklzwerg · 2025-02-02 17:43 Here is the project. (I couldn't attach it in the first post.