An easy way to do this without using globals or flags is to check if the 
current window is the active form's window when you want to draw something. 
If they are not the same, don't draw to the screen.  I found this easier and 
just as effective as trapping winEnter/winExit events.

Cheers,
Tim Kostka


"Tam Hanna" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> 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/

Reply via email to