Let's say I create (from TPanel) and install my own control. It contains only one button:
constructor TMyPanel.Create(aOwner: TComponent);
begin
inherited Create(aOwner);
btn:= TButton.Create(Self);
btn.Parent:= Self;
btn.Name:= 'xxx'; <-------- mandatory?
end;
Is it mandatory to give a name to that panel?
This question started from a comment posted by dummzeuch here:
This happens when your label doesn't have a name. The IDE adds declarations to the class only if the control has got a name (how else should it declare it?).
(I am specifically refer to that comment only)