At 3:03 PM -0500 4/18/06, Scott Thompson wrote:
Joe, is there a catch all event handler somewhere in the App class? How can one catch those 'unhandled' events?
No, there isn't, and you can't -- but I wouldn't expect you to need to, either. The only time you wouldn't have an opportunity to catch such an event is if there really is nothing to handle it (i.e., no control has the keyboard focus and no menus are open, etc.), in which case a beep is the correct behavior on Windows.
Usually, when this beep happens inappropriately, it's because you handled the event, but forgot to return True. For example, this often happens in menu handlers, where returning True is only moderately important on the Mac, but is very important on Windows.
In an EditField it's a bit different, since it's going to handle it either way -- if you return False, then it just goes about its usual keyboard handling. But this would probably NOT apply if you change the focus during the KeyDown, since then the control that has the focus would not be the one that actually triggered the keyboard event.
Best, - Joe -- Joseph J. Strout [EMAIL PROTECTED] _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
