Mouse Wheel events and ScrolledPanel

Chris Perkins wrote:

On Win2K, with Python2.3 and wxPython 2.5.3.1, a ScrolledPanel does
not respond to the mouse wheel if:
1) The focus is in a TextCtrl inside the panel
2) The TextCtrl has the wx.TE_RICH2 style

Is there a workaround for this? I've tried handling EVT_MOUSEWEEL
events sent to the TextCtrl, but I'm not sure what to do with them. How do I pass the event on to the parent (the ScrolledPanel) to handle
in its normal way?

You could try

  self.GetParent().GetEventHandler().ProcessEvent(event)

although you may have to tweak the attributes of the event object a bit first.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!