[Lazarus] Detecting when mouse leaves TPanel

Micha Nelissen micha at neli.hopto.org
Sat Apr 5 09:18:23 CEST 2008

Lee Jenkins wrote:
> The problem is that if you mousedown on the control and then move the mouse 
> aware from the control and *then* release the mouse, the control doesn't 
> register the mouse up and thus, the control stays colored the "mouse down" color.

This has to do with SetCapture etc. AFAIK, this has worked in the past.
When you mousedown, the control tries to get the capture, so that even
if the mouse leaves the control (or even the form) it still receives the
mouseup also.


More information about the Lazarus mailing list