Good time of day, Delphi guru and not only. The case here is this:
The procedure
procedure tform1.onbclick(Sender: TObject);
Creating during execution of the program a bunch of Button s in an array, and assign them to this procedure as the OnClick event
ArBut[i].OnClick=@onbclick;
Everything is working except the parameter Sender. As it is necessary correctly to specify in this case? Or how to get around that?
upd:
Everything works. Mixed up in procedure onbclick values for name and caption. and it is name for the dynamic creation I did not specify, so his request was empty and I thought that nothing works.