At 1:31 PM -0400 7/11/01, James wrote:
>you go back to waiting. I use this for a simple animation and all is fine
>until I open a menu. The animation continues and if it happens to be in a
>place where the menu is drawn, it draws over it. To solve this, I do a
>check and see if the active menu is visible using:
>
>MenuBarType *myMenu = MenuGetActiveMenu();
>if((myMenu && myMenu->attr.visible)
>{
> // whatever
You should be using winEnterEvent/winExitEvent to toggle whether it's
safe to draw. Menus aren't the only thing that can obscure your
window; the Find dialog and system alerts can pop up, too.
menuCmdBarOpenEvent will tell you if the 3.5 command bar has popped
up, but there's no event to tell you that it's gone away.
----
Hal Mueller [EMAIL PROTECTED]
Mobile Geographics LLC http://www.mobilegeographics.com/
Seattle, Washington (206) 297-9575
Get CelestNav 2.2! http://www.mobilegeographics.com/celestnav/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/