On Thu, 24 May 2012 00:02:51 -0700 (PDT) ardi wrote:
a> I think I can rewrite my question more clearly. I believe the issue is
a> that events don't propagate to parents on OSX (and I've read this is
a> also the case for GTK).
wxMouseEvents never propagate, they shouldn't do this under MSW neither.
a> So the question would be: What have to add to my wxPanel class so that
a> scroll wheel events are propagated to its parent on OSX?
The simplest would probably be to call panel->Bind(ScrolledWindow::OnXXX)
i.e. just bind your event handler to the panel event instead of bothering
with propagation.
a> I tried to add a wxMouseEvent event handler to my wxPanel, and from
a> there I called ResumePropagation() with the constant defined for the
a> maximum level of propagation. However, the ScrolledWindow (which is
a> the wxPanel parent) doesn't receive such event.
This should normally work but, again, just binding to the event directly
is much simpler.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/