Johan Vromans wrote:
Hi,
I have the following window hierarchy:
Frame
(sizer)
Panel
(gridbagsizer)
Panel
(sizer)
Bitmaps, StaticTexts, sizers, ...
Panel
(sizer)
Bitmaps, StaticTexts, sizers, ...
...
What I want is that if the user clicks anywhere inside the outer
panel, the click event is delivered at the outer panel. The inner
panels and objects do/should/must not respond to click events.
I can catch events from the inner panels, texts and so on but even
though I use Skip the event does not arrive at the outer panel.
Apparently I'm overlooking something.
It depends from the type of the events. Events derived from
Wx::CommandEvent bubble up the window hierarchy, while events that
derive from Wx::Event (like mouse move, button down, button up, double
click, keyboard events, ...) can only be handled by the window that
produces them; the only way I see is to manually forward them to the
outer panel.
Regards,
Mattia