FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to use oBrw:Setbackground and defined column-colors ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
How to use oBrw:Setbackground and defined column-colors ?
Posted: Wed Mar 12, 2014 06:18 PM
Hello,

is it possible, to define a column-color together with using oBrw:Setbackground ?
As soon SetBackGround defined, it is not possible, to define a column-color
It only works with No. 5 row-colors

1) oBrw:SetBackGround( aColor )

2) oBrw:SetBackGround( aGrad, BrwGradVert( oBrw ) )

3) oBrw:SetBackGround( aGrad )

4) oBrw:SetBackGround( c_path1 + cBrush )

5) oBrw:SetBackGround("Transparent")


It works only with row-colors :

6)
WITH OBJECT oBrw
oBrw:bClrStd = { || If( oBrw:KeyNo() % 2 == 0, ;
{ If( ( oBrw:cAlias )->( Deleted() ), nXbrDelete, nXbrText ), nXbrColor1 }, ;
{ If( ( oBrw:cAlias )->( Deleted() ), nXbrDelete, nXbrText ), nXbrColor2 } ) }
END




How to show column-colors with selection 1 to 5 ?
Column-colors are not painted using => oBrw:SetBackGround !

the needed solution sample bmp-brush :



Color,
gradient,
brush
and transparent ( shows the dialog-background )
with missing defined column-colors




Best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion