Walter Meester
HoogkarspelPays-Bas
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement