WITH OBJECT oApp():oGrid
:nRowHeight := 200
WITH OBJECT oApp():oGrid:aCols[ 1]
:cDataType := 'F'
:nWidth := 40
:nDataBmpAlign := AL_CENTER
:lBmpTransparent := .T.
END
But It show a small image

why ?
the original images are all Png and 72X72 of sizes
Code: Select all | Expand
WITH OBJECT oApp():oGrid
:nRowHeight := 40
WITH OBJECT oApp():oGrid:aCols[ 1]
:cDataType := 'F'
:nWidth := 40
:nDataBmpAlign := AL_CENTER
:lBmpTransparent := .T.
:lBmpStretch := .F.
:bStrImage := {|| SE->IMAGE }
END
WITH OBJECT oApp():oGrid:aCols[ 5]
:AddBitmap({ "BTN_PNG_TICK" ,"BTN_PNG_TICK_RED"})
:bBmpData := { || iif( se->a4, 1, 2) }
:bStrData := { || "" }
END
WITH OBJECT oApp():oGrid:aCols[ 6]
:AddBitmap({ "BTN_PNG_TICK" ,"BTN_PNG_TICK_RED"})
:bBmpData := { || iif(se->pos, 1, 2) }
:bStrData := { || "" }
END
WITH OBJECT oApp():oGrid:aCols[ 8]
:AddBitmap({ "BTN_PNG_LOCKSI" ,"BTN_PNG_LOCKNO"})
:bBmpData := { || iif(se->ISlock, 1, 2) }
:bStrData := { || "" }
END
:CreateFromCode()
END