Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to miss cmdbutton
Message
De
29/10/1997 14:56:28
 
 
À
29/10/1997 14:47:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00057253
Message ID:
00057258
Vues:
36
>>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
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform