Roger (and the mailing list),
This is being propagated because of an article in the Knowledge Base. I've
taken the article out of circulation and will add this new information to it.
We have the technology... :-)
Ryan Robertson
Palm Development Support
[EMAIL PROTECTED] on 07/09/99 11:04:02 AM
Please respond to [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (Ryan Robertson/MTN/US/3Com)
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