Enhanced groups in report

Enhanced groups in report

Postby StefanHaupt » Wed Jun 20, 2007 9:34 am

Hello,

I enhanced the class rgoup to have the possibility to get groupheaders with a shadow. Maybe somebody needs it.

When defining a group, just write oGroup:lShadow := .t., then it´s working.

Here are the changes in rgroup.prg:

Code: Select all  Expand view  RUN
.....
DATA lShadow, oShdBrush             // sh, 20.06.2007
.....


Method New()
...
DEFAULT ::lShadow := .f.
...

Method Header (nRow)
     IF !::lHeader
          RETU .F.
     ENDIF

     IF ::lShadow                             // sh, 20.06.2007
       IF ::oShdBrush == nil
          DEFINE BRUSH ::oShdBrush COLOR ::oReport:nClrShadow
       ENDIF

      // SetbkMode( ::oReport:oDevice:hDCOut, 1 )
       ::oReport:oDevice:FillRect( { nRow,;
                                     ::oReport:nMargin,;
                                      nRow +      ::oReport:aFont[eval(::bHeadFont)]:nHeight,;
                                     ::oReport:nWidth - ::oReport:nMargin},;
                                     ::oShdBrush )
     ENDIF
....


Maybe this is a suggestion for future versions.


kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 96 guests