From: <Geo...@im...> - 2002-10-17 08:41:08
|
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 when i right-click into the Window. Any help appreciated.... TIA Georg Mavridis PS: I am using Wx-0.11-wxmsw2.2.9-win32 installed on ActivePerl Build 626 |