From: Mattia B. <mb...@ds...> - 2002-10-17 19:30:43
|
On Thu, 17 Oct 2002 Geo...@im... wrote: >Hi, > >I have been trying to add a PopUp-Menu to my wxPerl-Application, but it >doesnt work. > >Adding the following EventHandler in the constructor of my Frame > > EVT_RIGHT_DOWN( $this , sub{ > my( $this, $event ) = @_; > my $menu = Wx::Menu->new( "Test Menu" ); > $menu->Append( 5, "Click on me!" ); > $menu->AppendSeparator(); > $menu->Append(6, "Quit Test" ); > $this->PopupMenu( $menu , $event->GetX, >$event->GetY);}); > >leads to a crash with the Error: > >unable to resolve overloaded method for Wx::Window::PopupMenu at c: >\httpd\gimmix\StorableGui\test.pl line 35 Fixed now in my local version; will be in the next release; as a workaround, you can call PopupMenuXY or PopupMenuPoint directly. HTH Mattia |