Hi List,
I am trying to capture a mouse wheel event from a wxBitmap, but for some reason it dosn't work. All other mouse events [that I used] work, and the
mouse wheel event works great if I register it for the frame...
I threw together a simple application that demonstrates the problem, currently the event is registerd for the bitmap, in which case no mouse wheel
event is triggerd, but if you comment that line and uncomment the one before it:
# EVT_MOUSEWHEEL(self, self.OnM) <-uncomment this
EVT_MOUSEWHEEL(self.bitmap, self.OnM) <-comment this
the event _is_ triggered (it prints the wheel rotation to the console window).
So what am I doing wrong?
Hi List,
I am trying to capture a mouse wheel event from a wxBitmap, but for some reason it dosn't work. All other mouse events [that I used] work, and the
mouse wheel event works great if I register it for the frame...
I threw together a simple application that demonstrates the problem, currently the event is registerd for the bitmap, in which case no mouse wheel
event is triggerd, but if you comment that line and uncomment the one before it:
# EVT_MOUSEWHEEL(self, self.OnM) <-uncomment this
EVT_MOUSEWHEEL(self.bitmap, self.OnM) <-comment this
the event _is_ triggered (it prints the wheel rotation to the console window).
So what am I doing wrong?
Platform and version?
It may be that the native control used for the wxStaticBitmap is catching the native wheel messages and not passing them on. You can probably get around it by creating your own control for displaying a bitmap.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!