Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Use F2 and F10 Function Keys for Custom Purpose

Status
Not open for further replies.

SGLong

Programmer
Jun 6, 2000
405
US
I am working on a data entry screen where I want to emulate the keystrokes used on a Bloomberg Terminal. My emulation works fine for keys F3 thru F9 and F11 but there is no response to F2 or F10. In the KeyPress event I placed the following diagnostic code.

Code:
WAIT WINDOW ALLTRIM(STR(nKeyCode)) TIMEOUT 1

and it generates a wait window for everything but F2 and F10. I even tried a tip from an earlier posting by placing 'ON KEY LABEL F2 KEYBOARD "{F2}" PLAIN' in the GotFocus event but to no avail.

Does anybody have any suggestions to allow the text box to respond to the F2 and F10 keys?

Steve
 
F2 and F10 are used in VFP IDE (F10 not only in IDE but by windows in general). F2 would work in an executable.
You can use winAPI if it is a must to use F10.

Cetin Basoz
MS Foxpro MVP, MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top