Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keyboard shortcuts
Message
De
04/01/1999 18:02:06
Daniel Christensen
University of Wisconsin River Falls
River Falls, Wisconsin, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Keyboard shortcuts
Divers
Thread ID:
00172591
Message ID:
00172591
Vues:
72
I want to enable some keyboard shortcuts on a form I am working on. I have done this by placing a do case statement in my forms keypress event and searching on nKeyCode. This has worked for me in general with the exception of when a control is in focus that responds to the shortcut that I'm trying to use. In that case the control handles the keyboard shortcut before the forms keypress event ever sees it. Is there a way to override the kepress events in the controls on the form or is there in general a better way to deal with keyboard shortcuts? Following are a couple of shortcuts that are giving me problems:

ctrl-rightarrow - advance to next record
ctrl-leftarrow - advance to previous record
ctrl-uparrow - advance to first record
ctrl-downarrow - advance to last record
ctrl-f - find records
etc....

Thanks in advance for your help,
Dan Christensen
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform