Detect that mouse cursor is over the title bar lazarus / 31-LCL ---------------------------------------------------------------------- CM630 · 2021-08-05 07:52 How am I to detect that the mouse cursor is over the title bar of the form? The OnMouseMove event is not triggered when the mouse is over the title bar. So I thought I could detect OnMouseMove for the entire OS, but I have found a Windows-only solution. In the worst case, I can place a timer that will check the position of the mouse let say every 150 ms, but probably that is not the best way. ---------------------------------------------------------------------- CM630 · 2021-08-23 12:02 Thanks. 1. It did not compile at first until I added types in the uses section. 2. Procedure Tform1.WMNCMouseMove(var msg:TLmessage); fires when the mouse cursor is over the title bar or over the borders of the form. 3. Procedure TForm1.WMMouseMove(Var msg:TLmessage); fires when I am somewhere else on the form. So it is still not exactly what I need. I will read some more...