I had the same problem in HandyShopper, with its (NON-modal) popup
calculator.  OS 5 removed support for WinEnableWindow, which forced me to
totally rewrite how it worked (and also killed a few other features in my
app).  That's when I ran into the problem of needing to know when the menu
opens or closes.  After reading the OS source code it became clear that no,
there is no way to know when the menu closes.  I had to restructure my event
pre- and post- processing (the pre/post processing is necessary for the
popup calculator to be non-modal), and use MenuGetActiveMenu() to tell if
the menu was active or not.


"g3BEPA" <[EMAIL PROTECTED]> wrote in message news:113214@palm-dev-forum...
>
> Hi group,
> I have a problem with the menu. I cant understand when
> it closes! I've debugged and here are the events that
> come:
> penDownEvent
> penUpEvent
> keyDownEvent
> menuOpenEvent
> keyDownEvent
> winExitEvent
> winEnterEvent
> keyDown
> winExit
> winEnter
>
> and there is no menuCloseEvent!! Does anybody have
> idea how could I understand when the menu is being
> closed? Thank you!
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to