There is a different behavior from Win16 to Win32 when using embeded dialogboxes into mdichild windows. This is a workaround that seems ok for samples\TestMdi4.prg:
Code: Select all
for n = 1 to Len( oDlg:aControls )
oDlg:aControls[ n ]:bLClicked = GenBlock( oWndChild, oDlg:aControls[ n ] )
next
ACTIVATE DIALOG oDlg NOWAIT ;
...
function GenBlock( oWndChild, oControl )
return { || oWndChild:SetFocus(), oControl:SetFocus() }
Code: Select all
METHOD LButtonDown( nRow, nCol, nFlags ) CLASS TGet
...
if ::bLClicked != nil // new
Eval( ::bLClicked ) // new
endif // new
return 1