Hello All,
Is there any way to define background of text ? I want to print certain text in reverse mode : i.e. Black background and white foreground.
Is it possible ?
TIA
Milan.
function ReversePrint
local oPrn, oFont
PRINT oPrn PREVIEW
DEFINE FONT oFont NAME "ARIAL" SIZE 0,-30 BOLD OF oPrn
PAGE
@ 200,200 PRINT TO oPrn TEXT "This is Reverse Text" FONT oFont ;
COLOR CLR_WHITE,CLR_BLACK
ENDPAGE
ENDPRINT
RELEASE FONT oFont
return nil
ORibeiro wrote:Thank you Rao,
How can I do this with oPrn:Say() ?
Oscar
function ReversePrint
local oPrn, oFont
local nOldClr
PRINT oPrn PREVIEW
DEFINE FONT oFont NAME "ARIAL" SIZE 0,-30 BOLD OF oPrn
PAGE
nOldClr := SetBkColor( oPrn:hDCOut, CLR_BLACK )
oPrn:Say( 200, 200, "This is Reverse Text", oFont, 5000, CLR_WHITE, 2 )
SetBkColor( nOldClr )
ENDPAGE
ENDPRINT
RELEASE FONT oFont
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 101 guests