"Laurence Mee" <[EMAIL PROTECTED]> wrote in message
news:71369@palm-dev-forum...
>
> Hi.
> I'm trying to find out when a menu or shortcut command line has been
(or is
> in the process of being) displayed.
> I have a form onto which I am drawing continuously, and of course this
> causes problems when menus or the shortcut command line is displayed.
> Now I know I can trap menuOpenEvent and menuCmdBarOpenEvent in PalmOS
3.5,
> but I'm trying to target PalmOS 3.1.
> Is there any way I can detect when a menu or command bar has been
opened in
> PalmOS 3.1?
> Is there also any way I can detect when it has been closed again (if
they
> select an option then that's no problem, but the menus can close
without
> them selecting an option)?

Look for a winExitEvent to detect that a menu is being popped up -- you
should see one of those, then a winEnterEvent for the menu, then menu
events, followed by a winExitEvent and a winEnterEvent, this time
entering your form's window.

Since the command bar only appeared on Palm OS 3.5, you don't have to
worry about that, but you'll probably need to call MenuEraseStatus
before doing any drawing to make sure the "linger" area from a shortcut
goes away and the system restores the old drawing before you draw
anything.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to