From: Mattia B. <mb...@ds...> - 2001-08-11 14:10:57
|
> Summary: EVT_SPLITTER_DOUBLECLICKED > > Initial Comment: > When I try to define event: > > EVT_SPLITTER_DOUBLECLICKED( $this, > \&OnSplitterDoubleclick ); > > an error accurs: > > Can't call method "GetId" on unblessed reference at > D:/Perl/site/lib/Wx/Event.pm line 26. Now that I read more carefully ( sorry for not doing it in the first place... ) EVT_SPLITTER_DOUBLECLICKED takes _two_ parameters _in C++_, so in wxPerl, it takes _three_: you should call it as: EVT_SPLITTER_DOUBLECLICKER( $this, $splitter, \&Function ); of course if you are catching the event in the splitter itself you should use: EVT_SPLITTER_DOUBLECLICKER( $splitter, $splitter, \&Function ); Always remember that wxPerl wants as the first parameter the event handler. HTH Mattia |