in reply to Re^4: Can a sublcass of Wx::StaticBoxSizer handle events in wxPerl?
in thread Can a sublcass of Wx::StaticBoxSizer handle events in wxPerl?

Looks ok to me too. Sorry, I can't help.

By the way, I think

my $panel = Wx::Panel->new($self, -1); my $sizer = Wx::BoxSizer->new(wxVERTICAL); my $control = my_control->new($panel); $sizer->Add($control, 1, wxEXPAND); $panel->SetSizerAndFit($sizer); return $self;
can be simplified to
my $sizer = Wx::BoxSizer->new(wxVERTICAL); my $control = my_control->new($self); $sizer->Add($control, 1, wxEXPAND); $self->SetSizerAndFit($sizer); return $self;

Replies are listed 'Best First'.
Re^6: Can a sublcass of Wx::StaticBoxSizer handle events in wxPerl?
by Anonymous Monk on Jun 23, 2010 at 18:58 UTC
    Inheriting from Wx::Panel rather than Wx::Control did the trick. Thanks!
      Really? Good to know! Thanks for the info.