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
(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
lect },
' > &Beta' => { -name => 'Beta', -onClick => \&Beta_Select },
);
my $WinMain = Win32::GUI::Window->new(
-name => 'Main',
-menu => $Menu,
...
);
$WinMain->{MyMenu} = $Menu;
...
}
sub Beta_Select {
3 matches
Mail list logo