Re: How to detect if a menu is open

2004-11-11 Thread Tam Hanna
Hi, thank you all for the response. Best regards Tam Hanna -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

How to detect if a menu is open

2004-11-10 Thread Tam Hanna
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

RE: How to detect if a menu is open

2004-11-10 Thread Robert Moynihan
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

Re: How to detect if a menu is open

2004-11-10 Thread Tim Kostka
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