Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter Key
Message
De
02/02/1999 15:52:03
 
 
À
02/02/1999 12:36:01
Ian Matthews
Up & Running Technologies Inc
Chestermere, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00182988
Message ID:
00183155
Vues:
16
>
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform