I want click with mouse on a record of xbrowse and change the bitmap
oCol:= oApp():oGrid3:AddCol()
oCol:AddBmpFile(".\BITMAPS\GRID\hand.BMP")
oCol:AddBmpFile(".\BITMAPS\GRID\handno.BMP")
oCol:bBmpData := { || Desp_Per()}
*oCol:bStrData := { || Desp_Per()}
oCol:cHeader := "Permesso"
oCol:nWidth := 100
oCol:oDataFont := oFontGrid
...
oApp():oGrid3:bLDblClick:={|| Asigna()}
STAT FUNC Desp_Per(cbmp)
LOCAL cPer:=IF((oDPer)->Permesso,1,2)
RETURN (cPer)
STAT FUNC Asigna()
IF lABC .AND. !Occupato(oDPer)
(oDPer)->Permesso:=!(oDPer)->Permesso
IF (oDPer)->Permesso
(oDPer)->ABC:=(oDPer)->Tipo
ELSE
(oDPer)->ABC:=""
ENDIF
(oDPer)->(DbUnlock())
Refr_Btn()
ENDIF
oApp:oGrid3:SetFocus()
RETURN (NIL)
Sometimes run sometimes not run ok why ?