[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] XaAES: menus in windows - window handle?
On 08/09/2010 10:44 PM, Helmut Karlowski wrote:
> I didn't know that the client may not know if it has a windowed menu or
> not (or maybe some have both?). If so, there should really always be an
It will always know this, as the window menu is always installed by the
client. I'm sure that many (perhaps most?) applications that have window
menus also have a normal menu bar. I have tested this with XaAES menu
widgets, it works fine. No conflicts between the menu bar and the window
menus.
> In case XaAES is the only AES that implements windowed menus, why not
> pass more valuable things than the rsc-addr? The client should know this
> anyway, shouldn't it?
Currently the rsc-address is used as a handle. I use this method in my
code too. But PeP's case shows that this is not an ideal solution. What
about introducing real handles to menu widgets? When the menu widget is
registered with wind_set, a handle is returned. This handle is also sent
with the menu-messages instead of either the rsc-address or in msg[1].
The handle can be anything, but an easy option is to just use the window
handle.
Jo Even