Am 09.08.2010, 00:23 Uhr, schrieb Henk Robbers <h.robbers@chello.nl>:
Peter Persson wrote:8 aug 2010 kl. 22.41 skrev Jo Even Skarstein:I solved it by cloning the resource tree used for the menu, and identifying the window using the address of the resource tree.On 08/04/2010 09:53 PM, Helmut Karlowski wrote:I guess these are needed for nested submenus (menu from a menu). But then the topmost 'parent' should point to - the window, shouldn't it?That doesn't help much, as you can't detect which window the menu is attached when a sub-menu is selected. I suggest abusing msg[1]. ThisTrue. So forget this idea and think about the other suggested ways.So what happened here? Did you guys agree on a solution?-- PePPeter, you must be a very nice and cooperative guy. I sincerely hope you will never get regrets about such a hack.
There have already been good suggestions and I'm sure Peter will be able to remove this sooner or later.
I'd also vote to not act on menus on non-topped windows or top them when selected (like windows does).
-- Helmut Karlowski