From: Marcus <li...@wo...> - 2002-07-28 07:28:54
|
I'm having a few difficulties with menus. I'm trying to implement a file history. How do you change a menu? I thought you would delete it and then append it, or use SetLabel. Anyway, neither $mfile->Delete(id), Destroy, Remove or SetLabel have any effect. Does anybody have a sample? wxPerl does not complain, but nothing happens. I tried UpdateUI(), but that changes nothing. The C++ menu sample uses Destroy(). Append has no effect after initial menu creation either, so maybe I'm just not updating something? GetLabel() seems to work. 2) Is Menu Range implemented? I tried: EVT_MENU_RANGE($this,$main::ID_FILEHISTORY1, $main::ID_FILEHISTORY5, \&OnFileHistory); and get: Error while autoloading 'Wx::wxEVT_COMMAND_MENU_RANGE' at J:/Perl/site/lib/Wx/Event.pm line 54 Thanks, Marcus NT4, wxPerl compiled from CVS May 25th. |