[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] XaAES: menus in windows - window handle?



Peter Persson wrote:
8 aug 2010 kl. 22.41 skrev Jo Even Skarstein:


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]. This

True. So forget this idea and think about the other suggested ways.

So what happened here? Did you guys agree on a solution?


I solved it by cloning the resource tree used for the menu, and identifying the window using the address of the resource tree.

-- PeP



Peter, you must be a very nice and cooperative guy.
I sincerely hope you will never get regrets about such a hack.

--
Groeten; Regards.
Henk Robbers. http://members.chello.nl/h.robbers
Interactive disassembler: TT-Digger;  http://digger.atari.org
A Home Cooked C compiler:      AHCC;  http://ahcc.atari.org