|
|
Title | Display a different tip for each cell in a FlexGrid control |
Keywords | FlexGrid, cell, tip |
Categories | Controls |
|
|
In the control's MouseMove event handler, use the MouseRow and MouseCol methods to see which cell is under the mouse. Make the new tooltip and, if it is different from the current tip, display it.
|
|
Private Sub MSFlexGrid1_MouseMove(Button As Integer, Shift _
As Integer, x As Single, y As Single)
new_txt = "(" & _
Format$(MSFlexGrid1.MouseRow) & _
", " & _
Format$(MSFlexGrid1.MouseCol) & _
")"
If txt <> new_txt Then
MSFlexGrid1.ToolTipText = new_txt
txt = new_txt
End If
End Sub
|
|
Formatted by
Neil Crosby
|
|
|
|
|
|