- Code: Select all Expand view
#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
And this is the cause:
- Code: Select all Expand view
if bKeyAction != nil .and. lAnd( nFlags, 16777216 ) // function Key
Is it intentional?
EMG