With a call like this:

Boolean IsMenuVisible(void)
 {
 MenuBarPtr activeMenu;
 activeMenu = MenuGetActiveMenu();
 if (activeMenu)
  return (activeMenu->attr.visible);
 return false;
 }

 you will be abble to check if the menu is diplayed before redraw your
screen


-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, July 08, 1999 7:31 PM
Subject: menu detection


>
>
>
>
>Is there a way to detect that a user has tapped the
>menu button?  I have an app that updates the screen
>every 5 seconds.  I need to be able to detect when the
>menu is displayed to disable the updating.  Otherwise
>the call to redraw the screen corrupts the displayed
>menu.  I didn't see an appropriate event (besides the
>penDown event).  Any suggestions?
>
>Much Thanks,
>Mark Clayton
>
>
>
>
>

Reply via email to