Disable scroll in a TSpinedit lazarus / 31-LCL ---------------------------------------------------------------------- SteenJorgensen · 2019-12-06 05:50 Is there a way to disable the mouseweel function in spinedit? I miss a TSpinedit.AllowMouseweel := False...…. ---------------------------------------------------------------------- Handoko · 2019-12-06 06:19 You can try: 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.SpinEdit1MouseWheel(Sender: TObject; Shift: TShiftState;  WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);begin  Handled := True;end; ---------------------------------------------------------------------- dsiders · 2019-12-06 06:38 Quote from: Handoko on December 06, 2019, 07:19:16 amYou can try: 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.SpinEdit1MouseWheel(Sender: TObject; Shift: TShiftState;  WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);begin  Handled := True;end; Not sure it handles wheel events, but perhaps this would work: 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 SpinEdit1.ControlStyle := SpinEdit1.ControlStyle - [csCaptureMouse]; ---------------------------------------------------------------------- SteenJorgensen · 2019-12-06 07:25 Thanks for reply. Wow, this works: procedure TForm1.SpinEdit1MouseWheel(Sender: TObject; Shift: TShiftState;   WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean); begin   Handled := True; end; Thanks - thanks - thanks