procedure TForm1.SpeedButtonNumberClick(Sender: TObject); begin edit2.Text:=edit2.Text + (Sender as TSpeedButton).Caption; end;