I think this is a better code:
ACTIVATE DIALOG oDlg ON PAINT oDlg:SayText( oDlg:cMsg ) ;
ON INIT oDlg:Center( oWndParent )
sometimes GetActiveWindow() may return a window that does not belong to our app
↧