All, The following is my menu and main window code: my $menu = Win32::GUI::MakeMenu( "File" => "File", " > Load Movie Data" => "LoadMovie", " > Save Movie Data" => "SaveMovie", " >-" => 0, " > Quit" => "btn_Quit", "Controls" => "Controls", " > Open JPEG" => "btn_Open", " > Schedule" => "btn_Schedule", " > Upload Movie" => "btn_Upload", " > Start Over" => "btn_Clear" ); my $main = Win32::GUI::Window->new(-name => 'MainWindow', -dialogui => 1, -title => 'Just a test', -menu => $menu, -maxsize => [816,570], -minsize => [816,570], -size => [816,610]); I want to disable the Schedule menu item. I have googled for this, searched SourceForge.net and PerlMonks.org and none of their solutions work. I am running perl 5.8.3 Build 809 (ActiveState) and Win32::GUI version 1.0.
Here is the command that does not work, but I found everyplace in the forums: $main->Menu->{btn_Schedule}->Disable(); Well, when I use that, I get a compiler error: Can't locate auto/Menu.al in @INC (@INC contains: C:\Program Files\ActiveState Komodo 2.5 C:/Perl/lib C:/Perl/site/lib .) at C:\wwwroot\mp2.gpl line 254 So I thought, hmm...maybe I'll try $menu->{btn_Schedule}->Disable(); I don't receive any errors, but it doesn't work. BTW, the rest of the application works perfectly. I left out the Win32::GUI::Dialog(); and Termination stuff for *breifness*. Anybody got any ideas on how to make this work? The menus change state (enable/disable) depending on the overall state the application is in (can't do a schedule, for instance, if you haven't entered start and end dates (not shown BTW)). I appreciate anybodies help and can email me directly. Thanx, William