Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form KeyPress event and function keys
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00439823
Message ID:
00440741
Vues:
22
Thanks David, that was it; with the nodefault in the text/edit boxes, the form responds as expected.

>Ashley,
>
>Put a NODEFAULT in the keypress event of your readonly textbox. You should not be using OKLs they are indeed a cludge.
>
>Can you verify if an example like the one I posted works for you.
>
>>Thanks for the reply. The form is based on a subclass that makes it modal and has some cosmetic preferences set + a timer which will close it after a timed lack of keyboard/mouse activity. As far as I can see, there is nothing trapping the keypress events other than command button hot keys (there are 26 of them!). Funny thing is that it does trap the tab and backspace keys. For the rest I get 'The control is read only', which refers to one of the disabled text/edit boxes. The 'on key label' bit works, though I consider that a kludge. With regards to the environment, I'm not sure how/why it would affect the handling of keystrokes.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform