Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Hot Keys
Message
De
14/04/2004 18:31:30
 
 
À
14/04/2004 13:40:55
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00894863
Message ID:
00894966
Vues:
6
>Does any one have a good way to add the use of "Hot Keys" without the "Hot Key" oversteping the natural function of a key. Example: F3 will put a generic note into an editbox with:
>
>If nkeycode = 86 Then
> note function
>EndIf
>
>But if the user needs to type in a cap "V" which is the same nKeyCode(86) the note will also appear without intension.

Check the nShiftAltCtrl state variable for the proper condition, too. F3 by itself is a -2, not an 86, that's a shifted F3.

So you should:
DO CASE 
  CASE nShiftAltCtrl=0 AND nKeyCode=-2   && F3
    *...
  CASE nShiftAltCtrl=1 AND nKeyCode=86   && Shift-F3
ENDDO
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform