Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically add keypress event to every cell
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00868972
Message ID:
00868980
Views:
13
Add a property to the form (grid_has_focus)
In When method of the Grid put
thisform.grid_has_focus = .t.

In Valid method of the Grid put:
thisform.grid_has_focus = .f.

Set the KeyPreview property of the form to .t.

In KeyPress method of the form:

IF thisform.grid_has_focus
* Use press a key on the grid
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform