#include "fivewin.ch"
function Main()
local oPrn
local oBrushRed, oBrushGrn
local oFont
DEFINE BRUSH oBrushRed COLOR CLR_RED
DEFINE BRUSH oBrushGrn COLOR CLR_HGREEN
PRINT oPrn PREVIEW
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-20 OF oPrn
PAGE
// Using method directly
// oPrn:SayText( row, col, <text> ,width,Heit, oFont,Align, ClrText,BckClr/Brush, UNITS )
// ----------------------------------------------------------------------------------------------------
oPrn:SayText( 300, 400, "Yellow, RedBrush", 2000, 200, oFont, nil, CLR_YELLOW, oBrushRed, "PIXEL" )
oPrn:SayText( 620, 400, "Default: nil,nil", 2000, 200, oFont, nil, nil, nil, "PIXEL" )
oPrn:SayText( 940, 400, "Red, GreenBrush", 2000, 200, oFont, nil, CLR_HRED, oBrushGrn, "PIXEL" )
oPrn:SayText( 1260, 400, "Default: nil,nil", 2000, 200, oFont, nil, nil, nil, "PIXEL" )
oPrn:SayText( 1580, 400, "Yellow, RedBrush", 2000, 200, oFont, nil, CLR_YELLOW, oBrushRed, "PIXEL" )
oPrn:SayText( 1900, 400, "Default: nil,nil", 2000, 200, oFont, nil, nil, nil, "PIXEL" )
oPrn:SayText( 2220, 400, "Default: nil,nil", 2000, 200, oFont, nil, nil, nil, "PIXEL" )
oPrn:SayText( 2540, 400, FWVERSION, 2000, 200, oFont, nil, CLR_HRED, oBrushGrn, "PIXEL" )
/*
// COMMAND SYNTAX ( Clarity of code, ease of coding, avoids possible mistakes in using method directly )
@ 300,400 PRINT TO oPrn TEXT "Yellow, RedBrush" SIZE 2000,200 PIXEL FONT oFont COLOR CLR_YELLOW,oBrushRed
@ 620,400 PRINT TO oPrn TEXT "Default: nil,nil" SIZE 2000,200 PIXEL FONT oFont
@ 940,400 PRINT TO oPrn TEXT "Red, GreenBrush" SIZE 2000,200 PIXEL FONT oFont COLOR CLR_HRED, oBrushGrn
@ 1260,400 PRINT TO oPrn TEXT "Default: nil,nil" SIZE 2000,200 PIXEL FONT oFont
@ 1580,400 PRINT TO oPrn TEXT "Yellow, RedBrush" SIZE 2000,200 PIXEL FONT oFont COLOR CLR_YELLOW,oBrushRed
@ 1900,400 PRINT TO oPrn TEXT "Default: nil,nil" SIZE 2000,200 PIXEL FONT oFont
@ 2220,400 PRINT TO oPrn TEXT "Default: nil,nil" SIZE 2000,200 PIXEL FONT oFont
@ 2540,400 PRINT TO oPrn TEXT FWVERSION SIZE 2000,200 PIXEL FONT oFont COLOR CLR_HRED, oBrushGrn
*/
ENDPAGE
ENDPRINT
RELEASE FONT oFont
RELEASE BRUSH oBrushRed, oBrushGrn
return nil
Can not yet see the problem.
Still we are testing.