Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypress() in _screen
Message
 
 
To
28/06/2000 05:41:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00385588
Message ID:
00385758
Views:
9
>Does anybody know how to assign a method to _screen.keypress, or a work-around ?
>
>Basically I want to trap for a particular set of keystrokes without a form being active.
>
>Regards
>
>Derek

Derek,
As Jess said _Screen does not have a KeyPress event. Actually it has no events whatsoever associated with it. Events occur as the result of some outside action and don't actually do anything while Methods perform a task. Because you can't add code to _Screen, it doesn't make sense to have events that do nothing.

A workaround would be to make _Screen invisible by adding SCREEN=OFF in your CONFIG.FPW or setting it explicitly very high in your code stack (_Screen.Visible = .F.). Then create a Top-level form to take the place of _Screen. You can add all the Event and Method code you want at this point.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform