Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keyboard shortcuts
Message
From
04/01/1999 18:02:06
Daniel Christensen
University of Wisconsin River Falls
River Falls, Wisconsin, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Keyboard shortcuts
Miscellaneous
Thread ID:
00172591
Message ID:
00172591
Views:
71
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
Next
Reply
Map
View

Click here to load this message in the networking platform