How can I, for example, in the following definition, incorporate the Color of a font (f.e. CLR_RED,...)
>DEFINE FONT oFont NAME 'ARIAL NARROW' SIZE 0,-9 OF oPrn
Thanks
José
oReport:SAY(line, 5*nColumn,ALLTRIM(MyDB->MyField), oFont, ,CLR_HGREEN)
#include "fivewin.ch"
function Main()
local oPrn, oFont, nRow
local aColors := { CLR_HRED, CLR_GREEN, CLR_BLACK }
USE STATES
PRINT oPrn PREVIEW
DEFINE FONT oFont NAME "VERDANA" SIZE 0,-20 BOLD OF oPrn
PAGE
nRow := 2
do while RECNO() <= 20 .and. !eof()
@ nRow, 1 PRINT TO oPrn TEXT FIELD->NAME SIZE 5 INCHES ;
FONT oFont COLOR aColors[ ( RECNO() % 3 ) + 1 ] ;
LASTROW nRow
SKIP
enddo
ENDPAGE
ENDPRINT
RELEASE FONT oFont
CLOSE STATES
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: FiveWiDi, Google [Bot], JoséQuintas and 43 guests