Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter Key
Message
De
02/02/1999 12:36:01
Ian Matthews
Up & Running Technologies Inc
Chestermere, Alberta, Canada
 
 
À
02/02/1999 12:28:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00182988
Message ID:
00183013
Vues:
19
>>>>How can I set the ENTER key to act as a TAB?
>>>>
>>>>Currently when users complete a field and press ENTER the next BUTTON in the TAB ORDER is pressed. I would like them to move to the next field in the TAB ORDER.
>>>>
>>>>There must be some overriding system setting like KEYCOMP to adjust this behaviour but I can not locate it.
>>>
>>>I don't think that button gets pressed (may be you press ENTER two times instead of one). You can intercept ENTER key in control.keypress event and replace it with other key there, e.g.
>>>IF nKeycode=13
>>>KEYBOARD '{TAB}'
>>>ENDIF
>>
>>It only takes one press of ENTER to jump from any field to the next available button. There must be an overriding setting to adjust this. I could not find anything in CONFIG.FPW or in my other system settings to change this but there must be a way without reprogramming every keys KEYPRESS event.
>
>Jump and Press are different things. If instead of button you want to get to some other control, then you should either change tab order in Form Designer, or use SetFocus to move it to the needed control.

I am familiar with JUMP and you are quite right that I used it inacurately. However, pressing the ENTER key skips all of the fields between the current field and the first button in the TAB ORDER. It is not practical to set the focus in the for every control to correct this.

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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform