Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form KeyPress event and function keys
Message
From
11/11/2000 02:50:48
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00439823
Message ID:
00440676
Views:
18
Hi David,

Thanks for the reply. The form is based on a subclass that makes it modal and has some cosmetic preferences set + a timer which will close it after a timed lack of keyboard/mouse activity. As far as I can see, there is nothing trapping the keypress events other than command button hot keys (there are 26 of them!). Funny thing is that it does trap the tab and backspace keys. For the rest I get 'The control is read only', which refers to one of the disabled text/edit boxes. The 'on key label' bit works, though I consider that a kludge. With regards to the environment, I'm not sure how/why it would affect the handling of keystrokes.



>Ashley,
>
>I think you have something else in your class hierarchy or environment that is causing your problem.
>
>Whether the Form is Modal or Modeless the function keys (except for F1 and F10) all echo valuesin the debug window.
>
>>I'm trying to trap function keys pressed on a modal form. I have set the form's KeyPreview property to .T., which help says will have the form intercept the keystrokes before the controls do. This does not seem to work.. I am echoing the keystrokes to a wait window and it seems to trap the TAB and BACKSPACE keys only.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform