in reply to How do i unbind a function bound by EVT_MENU ?
Probably it should (because it DWIMs, and it is easier than what is below). For now: $frame->Disconnect( 123, -1, &Wx::wxEVT_COMMAND_MENU_SELECTED ); If you need to disconnect other events, just look in lib/Wx/Event.pm for the definition, replace ->Connect with ->Disconnect and remove the last argument (the code reference). > Is it even possible? (i suspect it's not, but I can't be sure) It is :-) HTH MattiaWell that works (kickass!), but I can't wait until it DWIM's as well ;)
____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.
|
|---|