With predefined images at startup it works changing < :nHeadBmpNo >
with my sample above I wanted to rearange the images with new names not calling the image-position
Image changed by position works
- Code: Select all Expand view
FOR nCol := 1 to 3
WITH OBJECT oBrw:aCols[ nCol ]
:nWidth := 190
:lBmpTransparent := .T.
:nDataBmpAlign := AL_CENTER
:AddBmpFile( c_Path1 + "Image1.png" )
:AddBmpFile( c_Path1 + "Image2.png" )
:AddBmpFile( c_Path1 + "Image3.png" )
:nHeadBmpNo := nSValue // nSValue = selected image
:cHeader := ""
END
NEXT
tested changing image-names
before I must
RESET the header-image-array otherwise < :nHeadBmpNo > would be 4,5 and 6 !!!!
adding the position-number replaces the header-imge-array defined at startup ?
tested and works
:AddBmpFile( c_Path1 + "Image4.png",
1 ) // NEW image-names
:AddBmpFile( c_Path1 + "Image5.png",
2 )
:AddBmpFile( c_Path1 + "Image6.png",
3 )
- Code: Select all Expand view
oBrw:SetArray( aImage2 ) // new cell-images WORKS
FOR nCol := 1 to 3
WITH OBJECT oBrw:aCols[ nCol ]
:nWidth := 190
:lBmpTransparent := .T.
:nDataBmpAlign := AL_CENTER
:AddBmpFile( c_Path1 + "Image4.png", 1 ) // NEW image-names
:AddBmpFile( c_Path1 + "Image5.png", 2 )
:AddBmpFile( c_Path1 + "Image6.png", 3 )
:nHeadBmpNo := { || nsValue[ 1 ] } // nSValue = new selected image
:cHeader := ""
END
NEXT
oBrw:RefreshHeaders()
oBrw:Refresh()
best regards
Uwe