🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.tools
Article #144

Re: How do you replace <Tab> with <Enter> in a Dialog box?

#144
From: Harald Muehlhoff
Date: Tue, 11 Aug 1992 10:43
21 lines
1359 bytes
Hello Frank,

F >    I am tring to replace <Tab> with <Enter> in a Dialog box.  I have
F > lots of edit control in my dialog box.  Instead using <Enter> as the
F > Default push button, I would like for it to jump to next field.  I have
F > tried to dectect both WM_CHAR and WM_KEYDOWN, but they both seems
F > undectectable
F > in the dialog box.  Is there another way to do this?
F >
F > Thanks in advance.

when the user is pressing <Enter> in a dialog box your dialog procedure 
receives a WM_COMMAND message with IDOK in wParam.
Just add a check at the beginning of your code handling IDOK that verifies 
whether one of your edit controls still has the input focus. Then send your 
dialog procedure an appropriate message to set the input focus to another edit 
control.

Regards,

Harald
Technical Details
Message-ID: <190ad098@p11.f36.n245.z2.fidonet.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!dfv.rwth-aachen.de!sungate.fido.de!p1.hippo.fido.de!softstream.fido.de!Harald_Muehlhoff
References: <59158ee7@cis.uab.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!Sirius.dfn.de!Urmel.Informatik.RWTH-Aachen.DE!dfv.rwth-aachen.de!sungate.fido.de!p1.hippo.fido.de!softstream.fido.de!Harald_Muehlhoff
Date: Tue, 11 Aug 92 12:43:56 +0200
From: Harald_Muehlhoff@softstream.fido.de (Harald Muehlhoff)
Subject: Re: How do you replace <Tab> with <Enter> in a Dialog box?
Message-ID: <190ad098@p11.f36.n245.z2.fidonet.org>
References: <59158ee7@cis.uab.edu>
Newsgroups: comp.os.ms-windows.programmer.tools
X-Comment-To: (Frank)
Organization: CARECOM(R) 
Lines: 21