[Lazarus] OnMouseWheel event issue

Birger Jansen birger at cnoc.nl
Fri Nov 19 10:03:58 CET 2010


Hi all,

I have a TPanel on a TForm and an event on the TForm.OnMouseWheel. This works when I use the mousewheel on the form. But as soon as the cursor is over the TPanel, the OnMouseWheel event on the parent form is not triggered. Since the TPanel has no OnMouseWheel there is no way to use a mousewheel on a panel.

In Delphi, the TPanel passes the event to the parent control (TForm).

Shall I report a bug or is this designed behaviour? 
I think it relates to this: http://bugs.freepascal.org/view.php?id=12361

Kind regards,
  Birger Jansen




More information about the Lazarus mailing list