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. Gabor 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 :-( > > DoDi > > _______________________________________________ > Lazarus mailing list > [email protected] > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
