- Code: Select all Expand view RUN
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL cVar := SPACE( 30 )
DEFINE DIALOG oDlg
oDlg:bKeyChar = { || MsgInfo( "bKeyChar" ) }
oDlg:bKeyDown = { || MsgInfo( "bKeyDown" ) }
@ 1, 1 GET cVar
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
This is a possible solution:
- Code: Select all Expand view RUN
METHOD KeyChar( nKey, nFlags ) CLASS TDialog
if nKey == VK_ESCAPE
// if ! Empty( ::bKeyChar )
// Eval( ::bKeyChar, nKey, nFlags, Self )
// endif
...
METHOD KeyDown( nKey, nFlags ) CLASS TDialog
if nKey == VK_ESCAPE
// if ! Empty( ::bKeyDown )
// Eval( ::bKeyDown, nKey, nFlags, Self )
// endif
// if ! Empty( ::bKeyDown )
// Eval( ::bKeyDown, nKey, nFlags, Self )
// endif
...
EMG