Re: unexpected beeps from edit control




"Dan Gordon" <DanGordon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1FAEF60D-1B7C-42B8-B7B4-FEC6C4A143CF@xxxxxxxxxxxxxxxx
> I have multiple edit controls in a non-dialog window, and I want to use the
> tab key to cycle the keyboard focus between them. I have this working,
> except that every time the tab key is pressed there is a beep. As near as I
> can tell the beep is emitted before I ever receive WM_KEYDOWN. Is this
> normal? Can I stop it?

Don't do the focus election in the WM_KEYxxx handler. In your message
loop, call IsDialogMessage before you call TranslateMessage and
DispatchMessage.

--

-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.mvps.org/ArcaneIncantations/consulting.htm
-gchanson@xxxxxxxx



.



Relevant Pages

  • Re: keyboard focus does not go to message window
    ... > double-clicking it on the message pane, it will open in a new window. ... the keyboard focus is not in the message body so ... > I hit the TAB key and that brings the keyboard focus to the right ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • keyboard focus does not go to message window
    ... After you turn on the "Read all messages in plain text " in the Options tab ... it will open in a new window. ... I hit the TAB key and that brings the keyboard focus to the right place. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • keyboard focus does not go to message window
    ... After you turn on the "Read all messages in plain text " in the Options tab ... it will open in a new window. ... I hit the TAB key and that brings the keyboard focus to the right place. ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Outlook 2003 Weird Happening...
    ... Something goofy is going on with my Outlook 2003. ... Now, for some reason, WHENEVER I hit the TAB KEY, a window pops up. ... If you cancel etc. etc " ...
    (microsoft.public.office.misc)
  • Re: Incorrect and permanent loss of keyboard focus
    ... The window has a menu item that I use to create another window of that type that correctly gets the keyboard focus. ... The problem is that the KeyListener class that is registered with the Component is not being called when a key is being pressed. ... public static void main{ ...
    (comp.lang.java.gui)