Thanks. I could detect the command key stroke, yes, but that only tells me that the bar is appearing. I don't believe it tells me when it vanishes (say the person doesn't then enter a menu shortcut but just waits for the bar to remove itself).
It's looking like there is no way to determine when the Command bar is visible. Cheers, Laurence. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ben Combee Sent: 16 December 2001 22:11 To: Palm Developer Forum Subject: Re: Detecting menu events in PalmOS 3.1 "Laurence Mee" <[EMAIL PROTECTED]> wrote in message news:71392@palm-dev-forum... > > I did spend quite a while trying to find an answer before posting here but I > didn't see any reference to the problem I seem to be having. It might well > be that I didn't put in the right words to search for of course. > I'll try to narrow down the problem I have. > The specific problem I have is with the 'Command:' bar appearing because of > a menu shortcut stroke (PalmOS 3.1 specifically) and being unable to > determine if it has. I've tried checking if the currently active window is > the window I'm drawing in, and it always seems to be the case even with the > bar visible. I've tried calling MenuEraseStatus(0) before drawing but the > bar is not removed. This is only a problem with PalmOS 3.1, from 3.5 on it's > OK. > If you can find the thread that apparently dealt with this a few weeks back > in the archive, I would be grateful - equally if you can answer here I would > also be grateful. Why not detect the command keystroke and deal with it that way? You should try to intercept it between your EvtGetEvent and the call to SysHandleEvent. You're looking for character chrCommandStroke. -- 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/
