TIP: Click on subject to list as thread! ANSI
echo: delphi
to: FRANCOIS PIETTE
from: STEVE BATSON
date: 1996-05-18 11:11:00
subject: Using Enter instead of Tab

 PS> Does anyone know How can I manage to use The Enter key 
PS> aside of the Tab to switch to the next Edit field, possibily without 
PS> writing hundreds of code lines each time?
FP> The Enter key is used to do the same thing as the default button.
FP> The ESC key is used to do the same thing as the Cancel Button.
FP> The TAB key is used to walk thru the controls.
FP> If you build a Windows program wich uses the Enter, ESC and TAB key 
FP> forother puropose, you prbably missed something...
Adding my 2 cents...I agree that the keys have their uses, but there may be 
exceptions. For example, in a memo box, the user is typing away and wants to 
hit enter for the next line or tab to tab over, you don't want your 
application so rigid as to jump out to the next control in the tab order till 
they are done. Also, special purpose data entry screens can be sped up by 
allowing the user to press enter after each entry rather than having the  
enter key activate a default such as save record...the user may not be done 
yet. 
FP> One of the major Windows strength is to have a consistent user 
FP> interface across various programs. There is a book called "The 
FP> WindowsInterface: An Application Design Guide" published by Microsoft 
FP> wichexplain wich key does what, wich mouse action does what, how must 
FP> themenu be organized and so on. You should always follow those 
FP> guidelines.
FP> May be you are new to Windows World, may be you are in computer 
FP> science for many year, programming with other tools and other 
FP> languages, bilding other user interfaces. But now you are at the 
FP> writingof windows applications. So you must adapt yourself to the 
FP> Windowsenvironment. It has been proven that its user interface is 
FP> good. It isnot a good idea to change it...
Again, I agree for the most part, but depending on the needs of the user and 
the type application, it may or may not make sense to follow the guidelines 
to the letter. For most well written applications, the guidelines should 
probably apply. If it is necessary to deviate for some legitmate reason, it 
doesn't make the application a bad application. Standards are good, but they 
aren't always the best answer and missing some constiency to increase the 
usefulness of an application is not going to cause the end of the world or 
make that app a bad one. 
Steve
--- FreeMail 1.07b
(1:203/21)
---------------
* Origin: The Visual Programmer's Workshop - N.H., Ca (916)338-3230 *

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.