Hello,
is there a Sample, to define a xBrowse Gradient-Background straight from a Gradient-Array ?
aGrad := { { Position, COLOR1, COLOR2 }, ;
{ Position, COLOR2, COLOR1 } }
???
???
oLbx:SetBackGround( aGrad )
It is needed for the new xBrwTools-Update 5.0a
Folder-Page Gradient
Maybe I have to use the 3 Color-Values like in Sample TestxBr3.prg ?
I think, Instead of a BMP for the Gradient-Preview, it must be a Browser, to show 3 Colors.
local aGrad := oBrw:oBrush:Cargo[ 1 ] ???
local lVert := oBrw:oBrush:Cargo[ 2 ] ???
TestxBr3.prg show this Function:
// -----------------------------------------------
static function SelBrwGradClr( oBrw, nPart )
local aGrad := oBrw:oBrush:Cargo[ 1 ]
local aSave := AClone( aGrad )
local lVert := oBrw:oBrush:Cargo[ 2 ]
local nClr
nClr := If( nPart == 1, aGrad[ 1 ][ 2 ], If( nPart == 2, aGrad[ 1 ][ 3 ], aGrad[ 2 ][ 3 ] ) )
nClr := ChooseColor( nClr )
if nPart == 1
aGrad[ 1 ][ 2 ] := nClr
elseif nPart == 2
aGrad[ 1 ][ 3 ] := aGrad[ 2 ][ 2 ] := nClr
elseif nPart == 3
aGrad[ 2 ][ 3 ] := nClr
endif
oBrw:SetBackGround( aGrad, lVert )
return aSave
// ----------------------------------------------
Best Regards
Uwe