General information
Title:
KeyPress Event: Need for advice
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only