From: Jez W. <je...@je...> - 2004-02-16 13:56:20
|
Interesting. Now I know what the problem is I can use a work around (create a child window within the main window being the parent, then attach all controls = to the child :) ) In an ideal world it should be fixed - but I can see the logic for not do= ing it. In my case, I'm trying to convert my app to exclusively use NEM but keep running into various problems - such as this one:) Most of my app is stil= l OEM... Cheers, jez. ----- Original Message -----=20 From: "Stephen Pick" <Ste...@uc...> To: "Win32 GUI Hackers (E-mail)" <per...@li...>; "Jez White (E-mail)" <je...@je...> Sent: Monday, February 16, 2004 12:53 PM Subject: [perl-win32-gui-hackers] Menus and NEM Hello, Looks like menus are indeed a little busted. You can't use both event mod= els on a menu. You can use either the NEM or the OEM, but you can't selective= ly use NEM here and OEM there. If you add a menu to a window that is using t= he NEM and your window uses OEM, your menu won't work. Your menu's event mod= el must match that of the window you're adding it into. This is because menu commands are processed in their parent window's wndproc, and the wndproc assigned to a window depends on the event model = it is using. A bit of bashing and hacking on my (and others) part could make multi-event-model menus work properly, but I'd like to know if this functionality is actually required by anyone. I mean, if you're a NEM use= r you're going to use the NEM for everything, and if you're an OEM user you= 're going to use the OEM for everything. So is there any point to allowing yo= u to mix and match in menus? I'm inclined to believe "yes" just for flexibility, but if I discover tha= t it looks too annoying to implement I might change my mind to "no". Steve ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id438&op=3Dick _______________________________________________ Perl-Win32-GUI-Hackers mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-hackers |