[Lazarus] Invalid component names

Vincent Snijders vincent.snijders at gmail.com
Sun Apr 26 13:50:59 CEST 2009

Gabor Boros schreef:
> Hi,
> Dynamically created components have empty name after creation on Win32 
> too. This thing is true for Delphi too. This is normal I think.
> An example:
> var
>    MyLabel:TLabel;
> begin
>    MyLabel:=TLabel.Create(Self);
>    Button1.Caption:=MyLabel.Name;
> end;
> Button1's caption is empty with Lazarus on Win32 and with Delphi too.

I thinkk so too, that is why I asked for the example.

> Hans-Peter Diettrich írta:
>> On Win32 every component (at least control) gets an unique Name on 
>> creation. On Linux a dynamically created control has an empty name.
>> Is this a Lazarus or FPC problem?
>> I could not trace down to the point where the name is assigned in win32, 
>> because Lazarus denies setting an breakpoint on TComponent.SetName :-(


More information about the Lazarus mailing list