Just to qualify a little, The $childwin->Layout 'fix' is just a workaround that happens to work with wxWidgets 2.8.12 on windows. Maybe it works elsewhere too although as the code is handling updates and layout by defeating the normal operation of Wx::AUI - an update and layout manager, there are no guarantees.
If you're using Wx::AUI, using WindowUpdateLocker seems problematic (or any other additional update and layout scheme) and you might like to look at other ways of ameliorating your 'update storms' in the future. There does seem to be a great many $auimanager->Update calls in the code whereas if you are implementing some universal 'top level' code around updates, I might have expected to find 1 and only 1. Just an opinion so don't beat me :-) Mark On 30/05/2011 11:36, Mark Dootson wrote: > Indeed. > > However, the following also seems to remove the symptom if that's what > you want. (don't forget to reinstate WindowUpdateLocker creation). > > > sub update_decrement { > my $self = shift; > unless ( --$self->{update_depth} ) { > return if $self->{shutdown}; > > # Unlocked for the final time > $self->{update_locker} = undef; > > for my $childwin ( $self->{owner}->GetChildren ) { > $childwin->Layout if $childwin->isa('Wx::AuiNotebook'); > } > } > return; > } > > > > _______________________________________________ > Padre-dev mailing list > Padre-dev@perlide.org > http://mail.perlide.org/mailman/listinfo/padre-dev _______________________________________________ Padre-dev mailing list Padre-dev@perlide.org http://mail.perlide.org/mailman/listinfo/padre-dev