Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter key default in fields
Message
De
27/06/2002 07:16:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00672581
Message ID:
00672811
Vues:
10
>I seem to remember seeing a setting which will allow the user to advance through the fields on a form by using the ENTER key rather than the TAB key. Can anyone help me with this? I don't recall what that command/setting is. Also, if such a command exists, how does it effect the behavior of the DEFAULT button on a form?
>
>TIA
>
>Richard W. Bates

ENTER has some side effects which your users should be made aware of. Tracy mentioned CheckBoxes. Another object is a CommandButton - Tab moves the focus to the next object, ENTER is like clicking on the button.

You might convert all ENTERs to TABs, with an ON KEY LABEL or the KeyPress() event, but I am not so sure whether I would really recommend it.

Better just tell your users about the side-effect. Selecting the CommandButton with an additional ENTER is actually quite convenient in some cases: in my forms, users input data into several fields, advancing with ENTER, and then just click ENTER once more on a CommandButton to add a new record.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform