how do i use ALT + F2 as "Key" to call a ACTION
---
i found in Help File
ON KEYDOWN
but search under \Sample there is no File use it
when search for KEYDOWN only i found
- Code: Select all Expand view
- :bKeyDown := { |nKey| DoMyKey(nKey) }
so i wrote
- Code: Select all Expand view
- STATIC PROCEDURE DoMyKey(nKey,nFlag,cWho)
DO CASE
CASE EMPTY(nKey)
CASE nKey = VK_F1
DO CASE
CASE GetKeyState( VK_MENU ) ; MsginFo("VK_MENU VK_F1",cWho)
CASE GetKeyState( VK_CONTROL ) ; MsginFo("VK_CONTROL VK_F1",cWho)
CASE GetKeyState( VK_SHIFT ) ; MsginFo("VK_SHIFT VK_F1",cWho)
OTHERWISE
ShowHelp()
ENDCASE
CASE nKey = VK_F2
DO CASE
CASE GetKeyState( VK_MENU ) ; MsginFo("VK_MENU VK_F2",cWho)
CASE GetKeyState( VK_CONTROL ) ; MsginFo("VK_CONTROL VK_F2",cWho)
CASE GetKeyState( VK_SHIFT ) ; MsginFo("VK_SHIFT VK_F2",cWho)
OTHERWISE
MsginFo("VK_F2",cWho)
ENDCASE
ENDCASE
RETURN
when press ALT F2 nothing happens
when press CTRL + F2 i got MsgInfo()
when press SHIFT + F2 i got MsgInfo()
otherwise F2 i got MsgInfo()
when press ALT + F1 nothing happens
when press CTRL + F1 got Error Message no define
when press SHIFT + F1 got Error Message no define
otherwise F1 got Error Message no define
Question :
how to het ALT + nKey working
what about "override" F1