I must show bitmaps on a column for different type of record
I made at init
// prendo i bitmaps dei gradi
oDTipGrad:=Apri_Dbf("Tabelle" ) // open database
(oDTipGrad)->(DbSeek("G"))
DO WHILE (oDTipGrad)->CveTab="G" .AND. !(oDTipGrad)->(EoF())
AAdd(aGradiBmp,(oDTipGrad)->Bitmap)
(oDTipGrad)->(DbSkip())
ENDDO
Chiudi_Dbf("Tabelle",oDTipGrad) // close database
and I save on aGradiBmp all bitmaps sample ".\bitmaps\gradi\0028.bmp"
then on xbrowse I made
oCol:= oApp():oGrid:AddCol()
oCol:AddBmpFile(".\BITMAPS\GRID\SORT1.BMP")
oCol:AddBmpFile(".\BITMAPS\GRID\SORT2.BMP") oCol:cHeader := "Grado"
oCol:nHeadBmpNo := if( (oDVds)->( ORDNUMBER() ) == 7, 1, 2)
oCol:nHeadBmpAlign := AL_RIGHT
AEval( aGradiBmp, { |cBmpFile| oCol:AddBmpFile(cBmpFile)} )
oCol:bBmpData := { || (oDVds)->GRADO+2}
oCol:nWidth :=40
this runned ok but now I cannot show the bitmaps