delphi sender
事件处理程序和发件人 ( Event handlers and the Sender )
procedure TForm1.Button1Click(Sender: TObject) ;
begin
...
end;
Button1Click
按钮1
OnClick event
OnClick事件
The parameter "Sender" references the control that was used to call the method. If you click on the Button1 control, causing the Button1Click method to be called, a reference or pointer to the Button1 object is passed to Button1Click in the parameter called Sender.
参数“ Sender”引用用于调用该方法的控件。 如果单击Button1控件,导致调用Button1Click方法,则将对Button1对象的引用或指针传递给名为Sender的参数中的Button1Click。