- Code: Select all Expand view
DEFINE DIALOG oDlg FROM 0,0 TO nDlgHei, nDlgWid ;
STYLE nOr(WS_POPUP, WS_VISIBLE) ;
COLOR CLR_BLACK, nRgb(255,255,238) ;
TRANSPARENT ;
FONT oFnt PIXEL
ACTIVATE DIALOG oDlg NOWAIT CENTERED ;
ON INIT oDlg:bLostFocus := {|| oDlg:end()}
I expect this code to end the dialogue box if I click anywhere outside the dialogue box but it doesn't.
Why?
TIA