#include "fivewin.ch"
FUNCTION Main()
LOCAL oPrn, oPen, oPen2, oFont, oFontV, oFontS, oFont14V, oBrush
LOCAL cSyntax := "Syntax :" + CRLF + ;
"RoundBox( nTop, nLeft, nBottom, nRight, nRndW, nRndH, oPen, onBack, aText, cUnits )"
LOCAL cText := "aText :" + CRLF + "{ cText, oFont, nClrText, [cAlign] }"
DEFINE BRUSH oBrush FILE "..\bitmaps\backgrnd\space.bmp"
PRINT oPrn PREVIEW
DEFINE PEN oPen WIDTH 3 COLOR CLR_HRED OF oPrn
DEFINE PEN oPen2 WIDTH 1 COLOR CLR_BLACK OF oPrn
DEFINE FONT oFontS NAME "ARIAL" SIZE 0, - 12 OF oPrn
DEFINE FONT oFont NAME "ARIAL" SIZE 0, - 20 OF oPrn
DEFINE FONT oFontV NAME "ARIAL" SIZE 0, - 20 BOLD NESCAPEMENT 900 OF oPrn
DEFINE FONT oFont14V NAME "ARIAL" SIZE 0, - 14 NESCAPEMENT 900 OF oPrn
PAGE
oPrn:RoundBox( 1.0, 1.0, 2.0, 7.5, 0.4, 0.4, oPen, CLR_YELLOW, ;
{ "HORIZONTAL" + CRLF + FWVERSION, { oFont, oFontS }, CLR_HRED }, "INCHES" )
oPrn:RoundBox( 2.2, 1.0, 4.2, 2.0, 0.2, 0.2, oPen, CLR_GRAY, ;
{ "VERTICAL" + CRLF + "TEXT", oFontV, CLR_YELLOW }, "INCHES" )
oPrn:RoundBox( 5.9, 1.5, 7.1, 2.1, 0.1, 0.1, oPen2, CLR_HGRAY, ;
{ "Faturas", oFont14V, CLR_BLACK }, "INCHES" )
oPrn:RoundBox( 7.1, 1.5, 8.3, 2.1, 0.1, 0.1, oPen2, CLR_HGRAY, ;
{ "Cálculo" + CRLF + "Imposto", oFont14V, CLR_BLACK }, "INCHES" )
oPrn:RoundBox( 8.3, 1.5, 10.2, 2.1, 0.1, 0.1, oPen2, CLR_HGRAY, ;
{ "Transportador", oFont14V, CLR_BLACK }, "INCHES" )
oPrn:RoundBox( 2.2, 3.0, 4.2, 7.5, 0.3, 0.3, oPen, oBrush, ;
{ cSyntax, oFont, CLR_BLACK }, "INCHES" )
oPrn:RoundBox( 9, 1, 5, 5, .5, .5, { CLR_MAGENTA, 3 }, oBrush, ;
{ "FIRST" + CRLF + "SECOND", oFont, CLR_WHITE, "B" }, ;
"INCHES" )
oPrn:RoundBox( 4.4, 3.0, 5.9, 7.5, 0.3, 0.3, oPen, CLR_WHITE, ;
{ cText, oFont, CLR_BLACK }, "INCHES" )
ENDPAGE
ENDPRINT
RETURN NIL
Regards, saludos.