in reply to Re: Passing arguments to event handlers in WxPerl
in thread Passing arguments to event handlers in WxPerl
Sorry about the misunderstanding. This is just one package from the code. There is a little more. I can post all of it if you would like. You will have trouble running it without my database. The code for the event handler looks like this:
It appears that $self and $event are the only parameters contained in @_. Unfortunately, I cannot seem to access the GetValue() method(?) through either of these. From the limited wxPerl documentation, GetValue() is supposed to return the selected item in the combo box. I can't get that to happen. Neither $self->GetValue(), nor $event->GetValue() is recognized.sub Combobox1action { my( $self, $event ) = @_; $self->SetTitle( 'Combo box selected' ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Passing arguments to event handlers in WxPerl
by zentara (Cardinal) on Sep 18, 2014 at 20:10 UTC | |
by pwn01 (Initiate) on Sep 19, 2014 at 14:04 UTC |