2011/12/2 Everton Vieira <[email protected]>: > I've just make some like that: > > for i := 0 to 10 do > begin > MenuItem := TMenuItem.Create(Self); > MenuItem.Caption := 'tst ' + IntToStr(i); > PopMenu.Add(MenuItem); > ShowMessage(MenuItem.Name); > end; > > Despite the MenuItem is created in the PopMenu, the ShowMessage is showing > blank. > > How can a TComponent be created with the Name being blank "". > How can various TComponent being with the same blank Name "". > > Att. > Everton Vieira. >
A component doesn't requeire a name, it's only used by the form to update its references (published fields) according to the components' names. -Flávio -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
