PROCEDURE grid1.MouseMove
LPARAMETERS nButton, nShift, nXCoord, nYCoord
Local lnWhere, lnRelRow, lnRelCol, lnX, lcColumn
Store 0 to lnWhere, lnRelRow, lnRelCol
This.GridHitTest(nXCoord, nYCoord, @lnWhere, @lnRelRow, @lnRelCol)
With ThisForm
If .lEditMode
This.ToolTipText = '
If ((lnRelRow != .nrow) or (lnRelCol != .ncol) or ;
empty(.ctooltip)) and (lnWhere == 3) and ;
between(lnRelCol, 1, This.ColumnCount)
.nrow = lnRelRow
.ncol = lnRelCol
.LockScreen = .T.
This.ActivateCell(lnRelRow, lnRelCol)
Go recno()
.nrec = recno()
Do case
Case (lnRelCol == 1)
.ctooltip = ' ' + alltrim(UserName) + ' '
Case between(lnRelCol, 2, 3)
.ctooltip = ' ' + alltrim(Prod_Info) + ' '
EndCase
This.Columns[lnRelCol].Text1.ToolTipText = .ctooltip
This.Refresh()
.LockScreen = .F.
NoDefault
endif
else
If ((lnRelRow != .nrow2) or (lnRelCol != .ncol2)) and ;
(lnWhere = 3) and between(lnRelCol, 1, This.ColumnCount)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.