now i
changed the selection combobox putting "none" in third place
then before to call oBrw:report() I made
Code: Select all | Expand
If nGroup>1
aGroupby := {nGroup}
elseif nGroup==3 //none
aGroupby := {}
Endif
//index the dbf
IF oDbf != NIL
If nGroup >1 .and. nGroup < 3
oDbf:setorder(nGroup)
oDbf:gotop()
oBrw:oDbf:SetOrder(nGroup)
oBrw:oDbf:Gotop()
xbrowser oBrw:odbf
xbrowser oDbf
elseif nGroup==3 //none
oBrw:SetOrder()
Endif
Endif
call oBrw:report
oBrw:Report( cTitle, , , ;
{ |oRep, oBrw| MySetUp( oRep, oBrw, oDbf,aGroup,nGroup,lEject,aCampi ) },,,aCols )
this is the result of group
two questions
1) I wish a line after the header of group where you see the orange arrow
2) the alternate lines do not work, I tried with the normal report class and with these commands it seems to work
on report normal
Code: Select all | Expand
oReport:oShdBrush := TBrush():New(,nRgb(219,229,241))
AEval( oReport:aColumns, { | o | o:lShadow := ! o:lShadow } )
oReport:bStartLine := { || IF(oReport:nCounter % 2 = 0 , oReport:lShadow :=.F.,oReport:lShadow :=.T.) }
If I insert the same lines on mysetup of xbrowse
Code: Select all | Expand
oRep:oShdBrush := TBrush():New(,nRgb(219,229,241))
AEval( oRep:aColumns, { | o | o:lShadow := ! o:lShadow } )
oRep:bStartLine := { || IF(oRep:nCounter % 2 = 0 , oRep:lShadow :=.F.,oRep:lShadow :=.T.) }
Not run, why ?
but I discovered a bug a long time ago
I 'm talking of MakeRepCol( oRep, oXCol ) function
I discovered when call RptAddColumn() shadow value is .f.
Code: Select all | Expand
oCol := RptAddColumn( aHeader, nil ,;
{ bData }, nSize, nil ,;
nil, nil, nil ,;
"RIGHT", .F., .F., nil, ;
nil, nil, ;
nil, nil, nil, nil, nil, ;
nil, nil, nil, nil, nil, nil, ;
nil, ;
XEval( oxCol:nProgTot , oxCol ), aClr )
the lshadow is the ten value and it is FALSE
question
how can it work if the value is always false?
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