in reply to Re: Passing arguments to event handlers in WxPerl (is something you never have to do; wx-combobox-event.pl)
in thread Passing arguments to event handlers in WxPerl

Thanks for the response. It think that you are on to the problem. Do the variables in MyFrame that I loaded with the data from the database have the right scope for the event handler sub to access them?
  • Comment on Re^2: Passing arguments to event handlers in WxPerl (is something you never have to do; wx-combobox-event.pl)

Replies are listed 'Best First'.
Re^3: Passing arguments to event handlers in WxPerl (is something you never have to do; wx-combobox-event.pl)
by pwn01 (Initiate) on Sep 19, 2014 at 14:55 UTC
    Got it!!! Thanks. Here is the code:
    sub Combobox1action { my( $self, $event ) = @_; my $selection; $selection = $event->GetString(); $self->SetTitle( 'Combo box selected ( '.$selection.' )' ); }
    I guess I still need to clean up a little, but at least I've moved forward. Thanks all. Any other final suggestions are welcome.
Re^3: Passing arguments to event handlers in WxPerl (is something you never have to do; wx-combobox-event.pl)
by pwn01 (Initiate) on Sep 19, 2014 at 18:23 UTC
    I found the answer to the scope question.