# sizer time! my $sizer1 = Wx::BoxSizer->new(wxVERTICAL); $sizer1->Add( $self->{panel}, 1, wxEXPAND, 0 ); $self->SetSizer($sizer1); $sizer1->SetSizeHints($self);