Hello,
during intensive xBrowse testing, I noticed some problems using oBrw:SetBackGround
I noticed in xBrowse-class : oBrw:lTransparent := .T.
To find out what happens, I used a brush function.
The reason is, the brush is painted BEHIND the rows and with using oBrw:lTransparent := .T.,
the defined columns are not visible.
The options COLOR and ROWCOLOR-change works, because it doesn't use oBrw:SetBackGround.
defined 2 column-colors for field SALARY
( light = value > 0, dark = value = 0 and text-color red for deleted )
oBrw:aCols[ 10 ]:bClrstd := {|| { If( ( oBrw:cAlias )->( Deleted() ), 255, nXbrColTxt ), ;
If( ( oBrw:cAlias )->SALARY = 0, nXbrCol2, nXbrCol1 ) } }
THE PROBLEM is shown at the end of :
METHOD SetBackGround( uBack, uBckMode ) CLASS TXBrowse
...
...
if oBrush != nil
::lTransparent := .t. // set to .F. shows in picture 3, how the brush is displayed
::SetBrush( oBrush )
::MakeBrush()
endif
endif
endif
return Self
it works fine with using oBrw:bClrStd on COLOR and ROWCOLOR-change
the second defined rowcolor is used :
shows the brush painted BEHIND the rows and is only visible with oBrw:lTransparent := .T. !
Best regards
Uwe