printing in color

printing in color

Postby fagg » Tue Dec 16, 2008 7:25 am

I am a non professional fivetech user
I program the print jobs with ' print oprn...'
How can I print fonts in colors??
Thanks for any help
José Deschutter, Belgium
fagg
 
Posts: 1
Joined: Mon Dec 15, 2008 6:59 pm
Location: belgium

Re: printing in color

Postby Antonio Linares » Sun Jan 25, 2009 6:26 am

Jose,

Class TPrinter Method Say() supports the use of colors:
Code: Select all  Expand view
METHOD Say( nRow, nCol, cText, oFont,;
        nWidth, nClrText, nBkMode, nPad ) CLASS TPrinter

where nClrText is the desired color to use:

oPrinter:Say( 2, 2, "Hello world", oFont, 100, CLR_RED )

There are some predefined colors CLR_... or you can specify the one that you want using:
nRGB( nRedValue, nGreenValue, nBlueValue )
i.e.:
nRGB( 128, 100, 50 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42097
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 8 guests