Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enter Key
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00182988
Message ID:
00183010
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}'
>>>
>>>Don't you need NODEFAULT here to keep from firing the default button's Click?
>>>
>>>>ENDIF
>>>
>>>Cheers,
>>
>>Ah, you mean that Button.Default=.T.? Ok, then I would suggest to remove this setting at all :)
>
>I'm not the original creator of the thread, so I don't know. But I'm guessing that what's happening is that he has a button set as the default, and that the button is coincidentally the "next object in the tab order" when he sees the behavior he doesn't want.
>
>Cetin said that if there's no default button, [Enter] fires the next button in the tab order by default. It doesn't do that on my computer...if there's no default button, [Enter] moves to the next object. It only clicks a button if there's a default button, and the default button is the button it clicks. I just tested this.
>
>Does this behavior vary from VFP 3.0 to 5.0 to 6.0?
>
>Cheers,

I cannot say by sure, but at least on my computer (VFP5) Enter in textbox does not fire next button.click in order as claimed here, so ...
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform