[perl-win32-gui-users] (no subject)

2013-02-16 Thread Paul Floyd
How do I get a window's Win32::GUI::Menu object? I have a function that has the main window handle in a local variable ($Window).  I want to disable one of the items in this window's menu. Initially, I thought this would be easy, but: $Window->GetMenu(); returns a menu HANDLE, not an object ref

[perl-win32-gui-users] How do I get a window's Win32::GUI::Menu object?

2013-02-16 Thread Paul Floyd
(sorry for the repeat -- accidentally hit send before giving it a subject) How do I get a window's Win32::GUI::Menu object? I have a function that has the main window handle in a local variable ($Window).  I want to disable one of the items in this window's menu. Initially, I thought this would

Re: [perl-win32-gui-users] How do I get a window's Win32::GUI::Menu object?

2013-02-18 Thread Paul Floyd
lect },         ' > &Beta'    => { -name => 'Beta', -onClick => \&Beta_Select },     );     my $WinMain = Win32::GUI::Window->new(         -name => 'Main',         -menu => $Menu, ...     );     $WinMain->{MyMenu} = $Menu; ... } sub Beta_Select {