FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Enhanced groups in report
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Enhanced groups in report
Posted: Wed Jun 20, 2007 09: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:

.....
 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
kind regards

Stefan

Continue the discussion