Hi Herbert,
> Allright, first check you using wxAUI_NB_TAB_MOVE when creating the bar?
Check. I am using wxAUI_NB_TAB_MOVE.
> the -1 is the id because there can be several events on this widget so they
> get it and -1 just says take the lowest free one, if you dont give them a
> number your callback will be the ID and third parameter gets nothing - no
> callback to react on event. :)
So what should $self be? I usually use $self to be the holding frame
($frame) or dialogue ($dialog). Maybe $self here should it be
$frame->{notebook}, $frame->{tab}?
As you see from my connect statement I use the format:
Wx::Event::EVT_WIDGET_EVENT_DO_SOMETHING ( $frame,
$frame->{child_element}, \&on_event_do_something );
Which usually works. Have I got it wrong all this time? Are you using:
my $self = $frame->{child_element};
Wx::Event::EVT_WIDGET_EVENT_DO_SOMETHING ( $self, -1 ,
\&on_click_do_something );
Regards
Steve
> case solved - dinner time
>
> blessed 2013
> herbert aka lk