General information
Category:
Forms & Form designer
>
>There must be a simple way to override the default characteristics of the ENTER key so that it functions as it did in VFP2.6 and as it does in almost every other app in the world:
> - as the TAB key when the current focus is in a field, and;
> - press the button when the current focus is on a button.
Actually, the Windows standard is to have one button be the default button. Wherever you are on the screen, if you press the ENTER key, it acts like you clicked on this button. Usually, the OK or Save button on a dialog will be set as the default button. This means that the button's Default property is set to .T.
If you do NOT want this behavior (and from what I'm reading, that is the case), make sure that none of the buttons on your form have their Default property set to .T. If this is so, ENTER will just move you from field to field, and will only click a button if your focus happens to be on that button.
As far as I know, this behavior is the same in versions 3.0, 5.0, and 6.0. As I said, it is a Windows standard, and this behavior is the same in just about any Windows-standard-compliant program I've seen, be it VFP, Visual Basic, Word, Lotus Notes, or something out of left field.
Changing your app to override this behavior will make it more like a DOS app, and less like a Windows app. Make sure that your client knows that by requiring this behavior, thier program will NOT work like oher Windows apps.
Bill
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only