Article View: comp.os.ms-windows.programmer.tools
Article #135Re: How do you replace <Tab> with <Enter> in a Dialog box?
From: Todd Kover
Date: Tue, 11 Aug 1992 01:26
Date: Tue, 11 Aug 1992 01:26
31 lines
2124 bytes
2124 bytes
In article <1992Aug10.140713.23132@decuac.dec.com> baker@westsd.dco.dec.com (Art Baker) writes:
>In article <1992Aug9.195821.22225@cis.uab.edu> shen@cis.uab.edu (Frank) writes:
>> I am tring to replace <Tab> with <Enter> in a Dialog box. I have
>>lots of edit control in my dialog box. Instead using <Enter> as the
>>Default push button, I would like for it to jump to next field.
>
> This is probably a bad idea, since it's going to violate the
>expectations of people using your program. Tab-to-next-field
>is a piece of global Windows behavior, and by changing it, you're
>damaging the consistency of the Windows interface. Unexpected
>behavior from a program is Not Good.
It's been my experience that every client I've tried to explain this too
says that it's not right to have <enter> be the default button when there
are edit controls on the dialog box (Well, they didn't quite say it that
way... ;-) So, I've tended to implement both as a mechanism to go between
edit controls, with after the last one executing the default pushbutton.
I understand the tab/shift-tab to next field method, but, don't the not
using enter to go to the next one...
just my $.02 worth...
-Todd
--
/* Todd Kover // [ #include <std/disclaimer.h> ] "Murphy's Law of Dating II:
\X/ [ Internet: kovert@wam.umd.edu ] If you like her, she lives
CIS: 70621,2376 [ Fido: 1:109/447 & 1:261/5016 ] in a different state."
"Profanity is the language that all programmers know Best." */
Technical Details
Message-ID:
<1992Aug11.012632.16949@wam.umd.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!wam.umd.edu!kovertReferences:
<1992Aug9.195821.22225@cis.uab.edu> <1992Aug10.140713.23132@decuac.dec.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.tools,comp.os.ms-windows.programmer.misc Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!wam.umd.edu!kovert From: kovert@wam.umd.edu (Todd Kover) Subject: Re: How do you replace <Tab> with <Enter> in a Dialog box? Message-ID: <1992Aug11.012632.16949@wam.umd.edu> Sender: usenet@wam.umd.edu (USENET News system) Nntp-Posting-Host: rac2.wam.umd.edu Organization: Insufficient Memory Software References: <1992Aug9.195821.22225@cis.uab.edu> <1992Aug10.140713.23132@decuac.dec.com> Distribution: usa Date: Tue, 11 Aug 1992 01:26:32 GMT Lines: 31