I would like to :End() Dialog with Escape Key in GET MEMO. This code doesn't work. How can I do it?
- Code: Select all Expand view RUN
DEFINE DIALOG oDlgs FROM 0, 0 TO 24+200, 390 TITLE 'Test' ;
PIXEL FONT oFnts
oDlgs:lHelpIcon := .F.
@ 0, 0 GET oGet VAR cPosItem SIZE 195, 102 PIXEL ;
MEMO OF oDlgs
oGet:bGotFocus := {|| (oGet:SetPos(0))}
oGet:bKeyDown := {||nKey| iif(nKey=VK_ESCAPE, oDlgs:End(), ) }
ACTIVATE DIALOG oDlgs ON INIT (oDlgs:Move( 335, 85 )) NOWAIT RESIZE16
Regards,
Dutch