So far I remember, the question was:
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?
And IAs I have the same problem, I thinks this answer IS one of the simplest
answer.
-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, July 09, 1999 8:08 PM
Subject: Re: menu detection
>
>
><<<
>Boolean IsMenuVisible(void)
> {
> MenuBarPtr activeMenu;
> activeMenu = MenuGetActiveMenu();
> if (activeMenu)
> return (activeMenu->attr.visible);
> return false;
> }
>>>>
>
>Can folks stop propagting this? It is a too specific answer to the general
>question of "when is it safe to draw to window?" It misses every other
case
>when there is a window covering the window you want to draw to. The right
>solution is to track when windows come and go over the window you want to
draw
>to. You can do this easily by tracking winEnterEvents and winExitEvents.
For
>code you can copy and paste into your app, look at Reptoids, which is
available
>in the SDK and in various places on the web. If you still can't find it,
email
>me for a copy, and mention whether you want Mac or Windows line endings.
>
>A special thanks to Steve for being to only person to mention the right
answer!
>
>
>-Roger
>
>
>
>