TPrinter with GetWndDefault()
Posted: Sat Jan 12, 2008 10:35 pm
In the following sample GetWndDefault() returns NIL after TPrinter is used and then it continues to return NIL:
EMG
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
DEFINE DIALOG oDlg
@ 1, 1 BUTTON "Print";
ACTION PRINT()
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
STATIC FUNCTION PRINT()
LOCAL oPrn
? GETWNDDEFAULT()
PRINT oPrn PREVIEW MODAL
PAGE
ENDPAGE
ENDPRINT
? GETWNDDEFAULT()
RETURN NIL