Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function Keys
Message
From
07/04/1999 17:55:29
 
 
To
07/04/1999 07:41:28
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00205901
Message ID:
00206263
Views:
41
>Would I be moving in the right direction to set KeyPreview of form to .T. and have the KeyPress event call a method to click() the appropriate command button, or is there any easier way ?
>
>Thanks CB !!

Good direction.

I have written a general keypress routine which is part of my general form class. It looks for command buttons with names like cmdF2, cmdF3, cmdShiftF4, etc. In my reservation app I use all of the functions keys F2, ... F9, F11, and F12, both shifted and unshifted. I like this a lot and I believe they users do also though they tend to start off using the mouse mostly.

My design is that you can always use either the mouse or the function key combo.
In your keypress routine you need to check both the key code and shift-ctrl code. Key codes by themselves are ambiguous.

Let me know if you want me to post my keypress method.

Peter Robinson
Peter Robinson ** Rodes Design ** Virginia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform