in reply to Re: How to get a window's menu as a Win32::GUI::Menu object?
in thread How to get a window's menu as a Win32::GUI::Menu object?
As far as the functional interface goes, can you be more specific? I've read the tutorial several times. If there's something in there that helps me solve my problem, I'm not making the connection. Would you be so kind as to point it out?sub Main { my $Menu Win32::GUI::MakeMenu( '&Program' => 'Program', ' > &Settings' => { -name => 'Settings', -onClick => \&GU +I_Settings }, ' > &About' => { -name => 'About', -onClick => \&About +_Click }, ' > &Update' => { -name => 'Update', -onClick => \&Upda +te_Now }, ' > E&xit' => { -name => 'Exit', -onClick => \&Main_T +erminate } ); my $WinMain = Win32::GUI::Window->new( -name => 'Main', -menu => $Menu, ... ); ... } sub Update_Now { my($Window)=@_; # Disable the 'Update' menu item }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to get a window's menu as a Win32::GUI::Menu object?
by Anonymous Monk on Feb 17, 2013 at 09:04 UTC | |
by shadrack (Acolyte) on Feb 17, 2013 at 09:51 UTC | |
by Anonymous Monk on Feb 17, 2013 at 10:13 UTC | |
by shadrack (Acolyte) on Feb 17, 2013 at 10:44 UTC | |
by Anonymous Monk on Feb 17, 2013 at 11:16 UTC |