colorized retport header

colorized retport header

Postby Silvio.Falconi » Sat Jun 01, 2019 7:31 am

How I can colorize the header with Hgray color ?

Image
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: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: colorized retport header

Postby FranciscoA » Sun Jun 02, 2019 7:44 pm

Hi.
Take a look at this (FW1204). Maybe can help you.
viewtopic.php?f=6&t=24339&start=0&hilit=vistosidad
Regards.
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2158
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: colorized retport header

Postby Silvio.Falconi » Mon Jun 03, 2019 6:56 am

I wish use standard Fwh Report class ( for future support)
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: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: colorized retport header

Postby nageswaragunupudi » Mon Jun 03, 2019 9:05 am

Code: Select all  Expand view
#include "fivewin.ch"
#include "report.ch"

function Main()

   local oRep, oFont, oBold, oCol

   USE CUSTOMER NEW SHARED
   SET FILTER TO RECNO() <= 20
   GO TOP

   DEFINE FONT oFont NAME "TAHOMA"  SIZE 0,-12
   DEFINE FONT oBold NAME "VERDANA" SIZE 0,-13 BOLD

   REPORT oRep PREVIEW FONT oFont, oBold

   oRep:aClrText[ 1 ] := CLR_BLACK
   oRep:aClrText[ 2 ] := CLR_HRED

   COLUMN oCol TITLE "NAME" DATA FIELD->FIRST FONT 1
   oCol:bTitleFont   := { || 2 }

   COLUMN oCol TITLE "CITY" DATA FIELD->CITY  FONT 1
   oCol:bTitleFont   := { || 2 }

   ENDREPORT

   ACTIVATE REPORT oRep

   RELEASE FONT oFont, oBold

return nil
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: colorized retport header

Postby Silvio.Falconi » Mon Jun 03, 2019 9:48 am

Image

Some modifies Report class

Perhaps we can adopt the next release

I sent all to Antonio and Nages
Last edited by Silvio.Falconi on Mon Jun 03, 2019 11:00 am, edited 1 time in total.
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: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: colorized retport header

Postby Silvio.Falconi » Mon Jun 03, 2019 10:44 am

Type 1

oRep:lTitleColorized:=.t.
oRep:lDivideHeader:=.t.

Image

type 2

oRep:lTitleColorized:=.t.
oRep:lDivideHeader:=.f.

Image


Code: Select all  Expand view


#include "fivewin.ch"
#include "report.ch"

function Main()

   local oRep, oFont, oBold, oCol

   USE CUSTOMER NEW SHARED
   SET FILTER TO RECNO() <= 20
   GO TOP

   DEFINE FONT oFont NAME "TAHOMA"  SIZE 0,-12
   DEFINE FONT oBold NAME "VERDANA" SIZE 0,-13 BOLD

   REPORT oRep PREVIEW FONT oFont, oBold

   oRep:aClrText[ 1 ] := CLR_BLACK
   oRep:aClrText[ 2 ] := CLR_HRED

   oRep:lTitleColorized:=.t.
   // oRep:nClrTitle :=CLR_BLUE
   oRep:lDivideHeader:=.f.




   COLUMN oCol TITLE "NAME" DATA FIELD->FIRST FONT 1
   oCol:bTitleFont   := { || 2 }

   COLUMN oCol TITLE "CITY" DATA FIELD->CITY  FONT 1
   oCol:bTitleFont   := { || 2 }

   ENDREPORT

   ACTIVATE REPORT oRep

   RELEASE FONT oFont, oBold

return nil
 




add also

oRep:lRoundTitle:=.t. to roundbox
oRep:lBoxTitle:=.f. or only box/ fill


I sent all new methods to Antonio and Nages
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: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: colorized retport header

Postby nageswaragunupudi » Mon Jun 03, 2019 11:06 am

nice
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: colorized retport header

Postby Silvio.Falconi » Mon Jun 03, 2019 11:26 am

perhaps we can add it on Group and total but I not tried
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: 7033
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: wilsongamboa and 47 guests