When a TAction event fires, the \"Sender\" is always the action itself. Usually that\'s the most useful, but is it somehow possible to find out who triggered the action\'s OnExe
set the Tag of the buttons as 1, 2, ... etc and then:
procedure TForm1.FormCreate(Sender: TObject);
begin
Button1.OnClick := ButtonClick;
Button2.OnClick := ButtonClick;
end;
procedure TForm1.ButtonClick(Sender: TObject);
begin
if Sender is TButton then
begin
Caption := 'Button: ' + IntToStr(TButton(Sender).Tag);
end;
end;