Redirect wxEVT_MOUSEWHEEL events to control pointed at

Fabian Cenedese Cenedese at indel.ch
Mon Sep 24 07:55:01 PDT 2007


>> I wonder if this is due to Windows or wxWidgets... any button press on
>> the mouse is naturally redirected to the control under the mouse
>> cursor... why not scroll events?
>>
>
>It's Windows. On Windows, scroll events go to the window with the
>focus. You'll notice that under wxGtk, scroll events go to the window
>under the pointer.
>
>I would recommend against changing this, because it's a platform
>convention, even if you don't like it.
>
>If you really, really don't like it the very best thing to do is to
>use a mouse driver that will send mouse events this way (like the
>Logitech mouse driver above). If you insist that you must do it
>without following any of the platform conventions for this behavior,
>you should install a global mouse hook and manage the raw windows
>events.

I also had this problem (without wx) and am now using a little tool
called KatMouse. It sits in the notification area (system tray) and
you can configure what window classes it should react on. Works
fine.

http://www.code-scout.net/katmouse/

bye  Fabi






More information about the wx-users mailing list