Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MouseLESS Forms in VFP6
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00265690
Message ID:
00265698
Views:
15
Have you looked at using the keypress event of the form. You have access to all of the function keys and you don't have to use On Key at all.

ex:

Add custom methods to the form to perform the actions for the function keys and then call those methods from the key press event.
LPARAMETERS nKeyCode, nShiftAltCtrl

do case
 
  case nKeyCode = -1 && F2
    thisform.GoTop()
    nodefault

  case nKeyCode = -2 && F3
    thisform.GoPrevious()
    nodefault

  otherwise && All other keys
    dodefault()

endcase
endif
hth



>When a user does heavy duty data entry, they do not want to be reaching for a mouse. Therefore, we are intent on giving the user a MouseLESS Form for his data entry. To do this we would like to assign Function keys F1 through F12 to do certain tasks. For example, F1 through F4 could take the place of "Top", "Prev", "Next", "End". F9 through F12 could do "Add", "Edit", "Save", "Cancel" and F5 could trigger a lookup table relevant to the text box that has the focus, and so forth.
>
>We are having some difficulty with "On Key Label". Can anyone point me to a template that accomplishes this so we can look under the hood and see how it is done?
>Thanks.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform