Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
KeyPress Event: Need for advice
Message
From
04/11/1997 06:15:40
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
KeyPress Event: Need for advice
Miscellaneous
Thread ID:
00058110
Message ID:
00058110
Views:
70
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
Map
View

Click here to load this message in the networking platform