Why binding EVT_SIZE makes sizers unresponsive?

Hi,

···

On Thu, Jun 7, 2012 at 2:51 AM, Tommi Nieminen <tommi.k.nieminen@gmail.com> wrote:

Why is this happening?

Because Sizers need to receive the size event in order to do their
thing. Your event handler is intercepting the event not calling Skip
so the event is not propagating to the sizers.

Cody

A more accurate way to say that is that the event is not propagating to the base class's EVT_SIZE handler, which is where the window's sizer layout is done by default. (Sizers don't actually receive or process any events themselves.)

···

On 6/7/12 8:42 AM, Cody wrote:

Hi,

On Thu, Jun 7, 2012 at 2:51 AM, Tommi Nieminen > <tommi.k.nieminen@gmail.com> wrote:

Why is this happening?

Because Sizers need to receive the size event in order to do their
thing. Your event handler is intercepting the event not calling Skip
so the event is not propagating to the sizers.

--
Robin Dunn
Software Craftsman

Thursday, 7 June 2012 18.42.47 UTC+3 Cody Precord wrote:

Why is this happening?

Because Sizers need to receive the size event in order to do their

thing. Your event handler is intercepting the event not calling Skip

so the event is not propagating to the sizers.

Oh – it was that easy! Well, I only got my “wxPython in Action” yesterday! :slight_smile: