[Lazarus] Detecting when mouse leaves TPanel

Graeme Geldenhuys graemeg.lists at gmail.com
Sun Apr 6 14:23:32 CEST 2008


On 05/04/2008, Micha Nelissen <micha at neli.hopto.org> wrote:
>
> 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.


Does LCL support nested SetCapture's?  Say you create a custom
combobox component and the dropdown window grabs the mouse capture,
but the dropdown contains buttons (eg: Calculator ComboBox) which also
call SetCapture....  When clicking the button and releasing, will it
set the capture back to the dropdown window?


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the Lazarus mailing list