Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return not captured in keypress event on toolbar
Message
From
27/05/2002 09:29:34
Walter Meester
HoogkarspelNetherlands
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00661614
Message ID:
00661661
Views:
23
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,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform