You need to look for winenter and winexit events to see if something else (the 
menu) is active on the screen.  If so, you stop drawing.

--
RA Moynihan
Sent from my Treo

-----Original Message-----
From:  Tam Hanna
Date:  11/10/04 1:25 pm
To:  Palm Developer Forum
Subj:  How to detect if a menu is open

Hi,
I am in the process of developing a little clock that draws to the screen
via a buffer. No problems up to here
However, when the user opens up the menu, it gets overdrawn with the data
that comes in from the buffer at a nilEvent in the forms event handler.
I would now like to know how it is possible to determine if the menu is
open! Or is there another way to stop this distortion?

I already googled a bit in my documentation that came with the SDK. I wanted
to use the menuOpen and menuClose event pair, however the documentation says
that the menuClose event does not work at all! So this concept wont work..
Best regards
Tam Hanna


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

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

Reply via email to