Can any one kindly help me out? All my major software is in MDI environment.
I am using FWH 7.09 with BCC xHarbour binaries provided by FiveWin.
Code: Select all
#include "FiveWin.ch"
#define MDIWIN
FUNCTION Main()
LOCAL oWnd,oBar
#ifdef MDIWIN
DEFINE WINDOW oWnd MDI TITLE "PREVIEW MDI WINDOW"
#else
DEFINE WINDOW oWnd TITLE "PREVIEW SDI WINDOW"
#endif
DEFINE BUTTONBAR oBar OF oWnd
DEFINE BUTTON OF oBar PROMPT '1' ACTION PrintPV0()
ACTIVATE WINDOW oWnd
RETURN NIL
STATIC FUNCTION PrintPV0()
LOCAL oPrn, oFont
PRINT oPrn PREVIEW
DEFINE FONT oFont NAME 'ARIAL' SIZE 0,-10 OF oPrn
PAGE
oPrn:Say( 100, 100, "Test" , oFont )
oPrn:Say( 150, 100, "SECOND LINE" , oFont )
ENDPAGE
ENDPRINT
oFont:End()
RETURN NIL