Hi. Thanks for that. I didn't realise that the winExit/EnterEvent came in pairs like that for the menu. I'm testing this on the Palm Emulator with a 3.1 ROM and a PalmV look. When I use the shortcut stroke a Command: box appears at the bottom of the screen (for about 2 seconds). This doesn't cause a winExitEvent/winEnterEvent pair but it does sit over a place on the screen that I am redrawing. Is there anyway I can detect that it has appeared? Thanks.
Laurence. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ben Combee Sent: 16 December 2001 10:57 To: Palm Developer Forum Subject: Re: Detecting menu events in PalmOS 3.1 "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/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
