Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MouseLESS Forms in VFP6
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00265690
Message ID:
00265710
Vues:
24
Roi,
You da man!! Woiks like a chahm!!
Was trying to get away from the 2-handed hotkey idea.
Thanks

>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.
Jim Finger
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform