my BUTTON have a Caption which can be used as Hotkey using ALT + Key
now i like to use F2 - F9 to activate BUTTON
i can use o:bKeyDown Codeblock Slot to call a Functrion and use VK:* Key to identify
how to EVAL() ACTION Codeblock e.g. for VK_F2
- Code: Select all Expand view RUN
- DEFINE BUTTONBAR oBar SIZE nPart, 48 BOTTOM OF oWnd
DEFINE BUTTON OF oBar PROMPT "F2 &Filter" ;
GROUP BTNRIGHT ;
TOOLTIP "SET Filter" ;
NOBORDER RESOURCE "MYFILTER" ;
ACTION Filter( oBrwDBF )
@ 0, 2 XBROWSE oBrwDBF COLUMNS ColsNumber() ...
...
oWnd:bKeyDown := { | nKey, nFlag | DoBrowseKey( nKey, nFlag, oWnd, oGet, oBar ) }
- Code: Select all Expand view RUN
- PROCEDURE DoBrowseKey( nKey, nFlag, oWnd, oGet, oBar )
DO CASE
CASE nKey = VK_ESCAPE
oWnd:End()
CASE nKey = VK_F2
// how to EVAL() ACTION of F2 ?