Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KeyPress Event: Need for advice
Message
De
04/11/1997 06:15:40
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
KeyPress Event: Need for advice
Divers
Thread ID:
00058110
Message ID:
00058110
Vues:
74
Hi!

I am in process of moving my project from FPW26 to VFP 5.0
In FPW26 project I use ON KEY LABEL to process some keystrokes from keyboard.

In VFP I suppose to use KeyPress Event to manage the same. I have a from with a pageframe, on each page of pageframe i have some objects.
In order to use KeyPress event of the form before KeyPress event of the object i use KeyPreview=.T. or .F. property of a form to make it able to process keystrokes when i need or not.

Suddenly i found that KeyPress Event of the form triggers twice, especially when there is no object on the page which is enabled or can get a focus. Further I found, that some object can get a focus and for this object i write a 'dummy' Keypress even (just a RETURN), the keypress event of the form triggers only once (MyForm.keypreview=.T.).

Can anybody advice what to do in order to avoid this?

Thanks in advance

Alexander Mitchenko, Kiev, Ukraine
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform