Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to miss cmdbutton
Message
De
29/10/1997 15:26:28
 
 
À
29/10/1997 14:56:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00057253
Message ID:
00057266
Vues:
39
>>>How to make a command button unaccessible by "Enter"-key,
>>>and in the same time accessible by mouse-click and "Tab"-key?
>>>
>>>Ed
>
>Hi Ed,
>
>You could try something like trapping the Enter key in the LOSTFOCUS or KEYPRESS of the object preceding the Button and redirecting the focus, or trapping the Enter key in the WHEN of the Button and returning .F., e.g.
>
>in the KEYPRESS:
>
>
>IF nKeyCode = 13
>     THISFORM.MyObject.SETFOCUS
>ENDIF
>
>
>In the LOSTFOCUS or WHEN
>
>
>IF  LASTKEY() = 13
>     .
>     .
>ENDIF
>
>
>Bill

Thanks, it works.
Ed
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform