FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour cmsay
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
cmsay
Posted: Wed Oct 15, 2014 03:11 PM

How I can print a text with clrtext,backcolor

I can only use cmsay as

oPrn:CmSay( nRow, 3.5, "FEST",oFn1,,CLR_RED)

only color red How I can ake to print also the background color ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: cmsay
Posted: Wed Oct 15, 2014 03:55 PM
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: cmsay
Posted: Wed Oct 15, 2014 04:47 PM

I Know that documents
but I cannot print a text with background

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: cmsay
Posted: Wed Oct 15, 2014 05:49 PM
In printer.prg, maybe:

Code (fw): Select all Collapse
   SetbkMode( ::hDCOut, nBkMode )         // 1,2 transparent or Opaque


http://forums.fivetechsupport.com/viewtopic.php?f=3&t=9003&p=42765&hilit=nbkmode#p42765

Regards,
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 845
Joined: Sun Oct 09, 2005 05:36 PM
Re: cmsay
Posted: Wed Oct 15, 2014 06:00 PM

utiliza un brush

DEFINE BRUSH oBrush COLOR nRGB(215,215,215)

aDesde:=oPrn:Cmtr2Pix( nRow, 0 )
aHasta:=oPrn:Cmtr2Pix( (nRow + 0.3), 27 )
oPrn:FillRect({aDesde[1],aDesde[2],aHasta[1],aHasta[2]},oBrush)
oPrn:CmSay( nRow, 4.0, "Total del dia : " + des_fecha(dFechaCorte), oFont[5] )

saludos

____________________

Paco
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: cmsay
Posted: Sun Oct 19, 2014 10:38 AM

i WISH A COMMAND AS
@ SAY .... COLOR CLR_RED, CLR_YELLOW

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: cmsay
Posted: Sun Oct 19, 2014 04:12 PM

Silvio,
I suggest you to use EasyReport for printing.
Regards,
Otto

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: cmsay
Posted: Tue Oct 21, 2014 10:25 AM

Otto, I must create a document with hand - I have many and many options

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion