Why only VK_F?? keys can be redefined using SetKey()?
Posted: Tue Sep 12, 2006 2:28 pm
This is a sample:
And this is the cause:
Is it intentional?
EMG
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL nVar := 0
SETKEY( ASC( "-" ), { || MsgInfo( "Minus pressed" ) } )
SETKEY( VK_F2, { || MsgInfo( "F2 pressed" ) } )
DEFINE DIALOG oDlg
@ 1, 1 GET nVar OF oDlg;
PICTURE "99999";
RIGHT
@ 3, 1 BUTTON "&Close" OF oDlg ACTION oDlg:End()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
Code: Select all
if bKeyAction != nil .and. lAnd( nFlags, 16777216 ) // function Key
EMG