Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5.0 ON KEY LABEL
Message
From
05/01/1999 09:58:31
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00172619
Message ID:
00172750
Views:
34
>>>>I need to set up shortcut keys to call the click event on a form. When the user presses PGDN, I need to trigger: thisform.cmdNext.click()
>>>>
>>>>I have an ON KEY PGDN thisform.cmdNext.click() but THIS can only be called from a method.
>>>>
>>>>Help....
>>>>
>>>>Bly Maxwell
>>>
>>>You could use a form-specific menu that would hold those kind of short cut keys.
>>
>>This application has no menus (and the client doesn't want any.)
>>Any other ideas...
>
>Bly,
>
>Set the fomr's keypreview to .T. and trap the keystroke in the form's keypress event.

Jim,

I wanted to do this, but couldn't figure out how to trap for functions keys, like F2. Do they get to keypreview?

Jack
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform