using a adjusted TOOLTIP,
It can be used for ROWS or CELLS.
You can change the cell-color :
- Code: Select all Expand view
FOR i := 1 TO LEN( oBrw3:aCols )
WITH OBJECT oBrw3:aCols[i]
oBrw3:aCols[i]:bToolTip := { | oBrw, nRow, nCol, nFlags | ;
CELLCHANGE( oBrw, nRow, nCol, nFlags) }
END
NEXT
STATIC FUNCTION CELLCHANGE( oBrw, nRow, nCol, nFlags )
LOCAL nRow1, nCol1
// Reset to Your original xBrowse-setting, to delete the old mouse-capture-result
// --------------------------------------------------------------------------------------------
oBrw:aCols[ 1 ]:bClrStd := { || { nXBTColor, } }
oBrw:aCols[ 2 ]:bClrStd := { || { nXBTColor, } }
oBrw:aCols[ 3 ]:bClrStd := { || { nXBTColor, } }
// Brush
XBRW_BACK(oBrw, nXBStyle, nXBColorF, nXBColorB, nXBGradPos, lXBDirect, ;
cXBBrush, cXBImage, nXBStretch )
// -------
IF oBrw:MouseRowPos( nRow ) > 0
nRow1 := oBrw:MouseRowPos( nRow )
nCol1 := oBrw:MouseColPos( nCol )
// shows the row and col - number
// MsgAlert( "Row : " + ALLTRIM(STR(nRow1)) + CRLF + ;
// "Col : " + ALLTRIM(STR(nCol1)), "Position" )
oBrw:aCols[nCol1]:bClrStd := {|| { IIF( oBrw:KeyNo() = nRow1, 255, nXBTColor), CLR_GRAY } }
ENDIF
RETURN NIL
Best Regards
Uwe