OnMouseWheel for whole program lazarus / 21-General ---------------------------------------------------------------------- domasz · 2023-04-18 11:19 If my program is focused and someone uses mouse scroll I want to do something no matter which component is focused. How to do that? ---------------------------------------------------------------------- KodeZwerg · 2023-04-18 12:18 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.FormMouseWheel(Sender: TObject; Shift: TShiftState;  WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);begin  ShowMessage('Do something');end;? ---------------------------------------------------------------------- domasz · 2023-04-18 12:47 Thank you. I didn't work. A component was stealing the event. But I added "property OnMouseWheel;" to the component and now it works.