wx.SplitterWindow not resizing with parent Frame ?

Hello Anders,
  I didn't follow this thread very much, but have you tried calling
event.Skip() at the end of the OnSize() method?
Sorry if this has already been proposed.
Andrea.

That did the trick! Thanks.

Skip() makes the Event handlers of the parent classes run also ?

That did the trick! Thanks.

Skip() makes the Event handlers of the parent classes run also ?

Uhm... Do you mean if the event travels up to the parent class? If you bound the wx.EVT_SIZE of a single sub-panel in a frame that contains a lot of other things, AFAIK the event is generated and handled only for the sub-panel. But I may have erroneously interpreted your question. BTW, there are not so many events that propagate themselves up to the parent windows... There was a discussion some time ago about that, but honestly the fact itself that some events propagate and others do not is somewhat contradictory in wxWidgets :slight_smile:

Sorry if I have misinterpreted your question (maybe a sample code would help us in understanding the problem).

Andrea.

···

_________________________________________
Andrea Gavana (gavana@kpo.kz)
Reservoir Engineer
KPDL
4, Millbank
SW1P 3JA London

Direct Tel: +44 (0) 20 717 08936
Mobile Tel: +44 (0) 77 487 70534
Fax: +44 (0) 20 717 08900
Web: http://xoomer.virgilio.it/infinity77
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Anders Wallin wrote:

Hello Anders,
  I didn't follow this thread very much, but have you tried calling
event.Skip() at the end of the OnSize() method?
Sorry if this has already been proposed.
Andrea.

That did the trick! Thanks.

Skip() makes the Event handlers of the parent classes run also ?

It instructs the event system to continue looking for a handler of the event after the current handler returns. So yes, it will look in the base class for a handler, or if the type of the event is one that propagates up the containment hierarchy then it will eventually look at parent windows too.

···

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