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