Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Will any keys check and uncheck checkboxes?
Message
 
 
À
03/06/1999 09:16:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00210499
Message ID:
00225915
Vues:
33
>Mark:
>How do I prevent the key from toggling the checkbox and make it work like a TAB? I've tried putting this code in keypress event:
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>if nKeyCode = 13
> nKeyCode = 9
>endif
>
>dodefault(nKeyCode, nShiftAltCtrl )
>
>I've also tried
>if nKeyCode = 13
> KEYBOARD '{TAB}'
>endif
>
>dodefault(nKeyCode, nShiftAltCtrl )
>
>Any Ideas?
>Mike

I would RETURN after the KEYBOARD command. The DoDefault() over-rides yourkeystroke intercept.
if nKeyCode = 13
   keyboard '{TAB}'
   nodefault
   return
endif

dodefault(nKeyCode, nShiftAltCtrl)
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform