Re: [perl-win32-gui-users] MenuItem NEM

2004-10-01 Thread Laurent ROCHER
Hi, Main reason why Win32::GUI::MenuItem isn't passed to NEM handler, it's because this object it's not stored anywhere when using AddMenuButton/AddMenuItem (memory managment reason). When you use Win32::GUI::MakeMenu, a perl tree representation of your menu it's create and store in your

[perl-win32-gui-users] MenuItem NEM

2004-10-01 Thread Blair Sutton
Hi, I was wondering if there is any reason for MenuItem objects to forward the main Window class as their first argument to NEM subs and not the MenuItem object itself? I.e. use Win32::GUI; my $M = new Win32::GUI::Menu(); my $B = $M->AddMenuButton(-text=>'B'); my $I = $B->AddMenuItem(-t