Re: Newbie: CDialog: How to get the Enterkey work the same way as TAB?
From: Doug Harrison [MVP] (dsh_at_mvps.org)
Date: 10/31/04
- Next message: Joan Coleman: "Re: design Q : using timer/threads"
- Previous message: Jim H: "VS .NET 2003 hangs while "Generating Code...""
- In reply to: Thomas Langer: "Newbie: CDialog: How to get the Enterkey work the same way as TAB?"
- Next in thread: Thomas Langer: "Re: Newbie: CDialog: How to get the Enterkey work the same way as TAB?"
- Reply: Thomas Langer: "Re: Newbie: CDialog: How to get the Enterkey work the same way as TAB?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 31 Oct 2004 11:54:09 -0600
Thomas Langer wrote:
>Hello,
>
>im a Newbie in C++, and MFC also.
>I have a SDI-Application, which opens a Dialog for entering Data. When I
>press the Enterkey the Dialog closes. But I want to get the enter-key
>act in the same way as the enter-key. Jump from edit-box to edit-box and
> on the last edit-box the data is saved and the dialog closes.
>How can i get this functionality? I have overwritten the OnOk()-Method,
>so the dialog stop closing, but the focus isn't changing.
See this KB article:
How To Use the ENTER Key from Edit Controls in a Dialog Box
http://support.microsoft.com/default.aspx?scid=kb;en-us;102589
-- Doug Harrison Microsoft MVP - Visual C++
- Next message: Joan Coleman: "Re: design Q : using timer/threads"
- Previous message: Jim H: "VS .NET 2003 hangs while "Generating Code...""
- In reply to: Thomas Langer: "Newbie: CDialog: How to get the Enterkey work the same way as TAB?"
- Next in thread: Thomas Langer: "Re: Newbie: CDialog: How to get the Enterkey work the same way as TAB?"
- Reply: Thomas Langer: "Re: Newbie: CDialog: How to get the Enterkey work the same way as TAB?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|