shadrack has asked for the wisdom of the Perl Monks concerning the following question:
$Window->GetMenu();returns a menu HANDLE, not an object reference. This seems to be more or less useless -- unless there's a way to turn the handle into an object?
$Window->{-menu}
returns nothing.
Ultimately what I'm trying to accomplish is something like:
$Window->Menu->{'MyMenuItem'}->Enabled(0);
Google indicates this actually worked at one time, but apparently Win32::GUI has changed enough since then that the current version doesn't allow that.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get a window's menu as a Win32::GUI::Menu object?
by Anonymous Monk on Feb 17, 2013 at 06:57 UTC | |
by shadrack (Acolyte) on Feb 17, 2013 at 08:33 UTC | |
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 | |
|