Trying comply with suggestions from all you clever people.
Not ignoring anyone - simply needs to understand why (at least one reason) for doing things one way instead of another - otherwise I will not be able to remember...
Goal is to create a container, that should be able to show a number of list of labels (or StaticTexts - eventually probably manually drawn, but for learning, label will be fine).
Container should have a scrollbar as part of the component, and Lists a headline(Label or StaticText).
So - decided to start over.
Created a simple descendant from Tpanel, that contains or does nothing else.
Functions as expected.
Programmatically creates a scrollbar in the Loaded procedure
It doesn't show up in editor at design time, and Form doesnt show up, when run - but no errors compiling.
Moved the creation of the ScrollBar to Containers constructor.
The scrollbar now shows up in he designer - the Form still does not show, when the program is run...
Pauses execusion and singlesteps, through call to a couple of methods in other files - application.inc, LazMethodList, win32obj.inc, win32winapi.inc - , and eventually end up in a debug error. (image)
Reloading the project, the Panel component is now shown in editor as an area without grid (no outline, just 4 black resize marking - but clicking anywhere doe not select the component, but the Form, and the reappears...
Component can be selected in the object inspector.
Giving Lazarus a pause for now...