Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting a grid to respond to a keypress
Message
From
02/02/1999 11:25:24
 
 
To
01/02/1999 20:25:42
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00182778
Message ID:
00182960
Views:
9
Bob, put this into .GotFocus (or, if you use VFP3, put the grid inside the container and use container's GotFocus event):
ON KEY LABEL Ctrl+INS APPEND BLANK

And in the .LostFocus:
ON KEY LABEL Ctrl+INS


>I have a grid and I want to insert a new record when the user presses a certain key (like ^INS) with *any* part of the grid selected. I know how to use the KeyPress event in the text object of a column but I don't want to force the user to have that particular text item selected. I don't see a more global "KeyPress" event available. How can I do this?
>
>TIA, Bob Alei
Previous
Reply
Map
View

Click here to load this message in the networking platform