cmsay

cmsay

Postby Silvio.Falconi » Wed Oct 15, 2014 3: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6865
Joined: Thu Oct 18, 2012 7:17 pm

Re: cmsay

Postby karinha » Wed Oct 15, 2014 3:55 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7381
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: cmsay

Postby Silvio.Falconi » Wed Oct 15, 2014 4: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6865
Joined: Thu Oct 18, 2012 7:17 pm

Re: cmsay

Postby karinha » Wed Oct 15, 2014 5:49 pm

In printer.prg, maybe:

Code: Select all  Expand view

   SetbkMode( ::hDCOut, nBkMode )         // 1,2 transparent or Opaque
 


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

Regards,
Last edited by karinha on Wed Oct 15, 2014 6:00 pm, edited 1 time in total.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7381
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: cmsay

Postby Francisco Horta » Wed Oct 15, 2014 6: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
Francisco Horta
 
Posts: 845
Joined: Sun Oct 09, 2005 5:36 pm
Location: la laguna, mexico.

Re: cmsay

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6865
Joined: Thu Oct 18, 2012 7:17 pm

Re: cmsay

Postby Otto » Sun Oct 19, 2014 4:12 pm

Silvio,
I suggest you to use EasyReport for printing.
Regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6088
Joined: Fri Oct 07, 2005 7:07 pm

Re: cmsay

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6865
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 42 guests