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 12:07:29
 
 
To
27/05/2002 09:29:34
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00661614
Message ID:
00661712
Views:
29
>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)

Good work! Time for a beer...

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,
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Reply
Map
View

Click here to load this message in the networking platform