How to handle Buttons on TUpDown component ? lazarus / 31-LCL ---------------------------------------------------------------------- DenPit5 · 2019-02-13 16:26 Can anyone explain How to distinguish which of the two buttuns on the TUpDown control was pressed. ? ---------------------------------------------------------------------- Handoko · 2019-02-13 16:29 Something like this below? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.UpDown1Click(Sender: TObject; Button: TUDBtnType);begin  case Button of    btNext: ShowMessage('Up is pressed');    btPrev: ShowMessage('Down is pressed');  end;end; ---------------------------------------------------------------------- dsiders · 2019-02-13 16:31 Quote from: DenPit5 on February 13, 2019, 05:26:00 pmCan anyone explain How to distinguish which of the two buttuns on the TUpDown control was pressed. ? OnClick gets a TUDBtnType parameter: btPrev, btNext. ---------------------------------------------------------------------- DenPit5 · 2019-02-13 20:17 Many thanks HanDoko and dsiders for replies. That is just what I required.   Thanks again.