How use OnMouseWheel in TForm lazarus / 10-Designer ---------------------------------------------------------------------- Marek · 2007-10-24 22:16 I write CAD application. Empty form, only MainMenu and ScrollBars at the edge, drawing used OpenGL in form. I planned when user use mouse wheel then drawing is zoomout or zoomin. When form is empty (without MainMenu or ScrollBars or other component) this working correctly. But if form not empty it dosen`t work. I used code like this: procedure TMainForm.FormCreate(Sender: TObject); begin ....   MainForm.OnMouseWheel := @MouseWheel; ..... end; but other way also not working: procedure WMMouseWhell(var message: TLMMouseEvent); message LM_MOUSEWHEEL; or function  DoMouseWheel(Shift: TShiftState; WheelDelta: Integer;                                    MousePos: TPoint): Boolean; override; I`m used Lazarus 0.9.22 in Windows XP. Thanks for anything suggestion. PS. If  use other component, like TPanel, alignment alClient then event OnMouseWheel working. But OpenGL drawing only in TForm (or I`am don`t known why forced OpenGL drawing in other component). ---------------------------------------------------------------------- antonio · 2007-10-24 22:36 I think only ScrollBox component has MouseWheel events appropriately implemented as cross-platform events.