Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return not captured in keypress event on toolbar
Message
De
27/05/2002 09:29:34
Walter Meester
HoogkarspelPays-Bas
 
 
À
27/05/2002 07:50:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00661614
Message ID:
00661661
Vues:
24
Hoi peter,

>>I've got a textbox and a combobox on a toolbar. I can't get the valid to fire when I press return, so I want to look out for a CHR(13) in the keypress event. I remember this works in VFP 6, but in VFP 7 this does not seem to work at all.
>>
>>Strange thing is that when launching the debugger, it does show that the keypress event is called, however in the runtime version it does not.

>"Bug" is my first and only thought.

Never mind. I solved it. The problem was in a custom made FLL which task is to redirect (keyboard) messages to VFP as some ActiveX controls do not redirect keypresses to VFP (e.g. hotkeys). In my case I was hooking this FLL onto the Crystal ActiveX viewer which nicely passes the keystrokes, but somehow does not pass the RETURN correctly. With a minor change in the FLL I managed to get it to work.

I also thought this was probably a bug but it turned not to be one. However it still is strange that the debugwindow did show the return processed in the keypress event. I wonder what is different between the runtime and development version in this respect.

Groet,

Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform