VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Properties > ScrollTips Property |
Returns or sets whether tool tips are shown while the user scrolls vertically.
[form!]VSFlexGrid.ScrollTips[ = {True | False} ]
Use the ScrollTips property to display a tooltip over the vertical scrollbar as the user moves the scroll thumb. This allows the user to see which row will become visible when he releases the scroll thumb. This feature makes it easy for users to browse and find specific rows on large data sets. This feature is especially useful if the ScrollTrack property is set to False, because then the control will not scroll until the thumb track is released.
To implement this feature in your programs, you must do two things:
1. Set the ScrollTips property to True
2. Respond to the BeforeScrollTip event by setting the ScrollTipText property to text that describes the given row.
For example:
Private Sub Form_Load()
fg.ScrollTrack = False
fg.ScrollTips = True
End Sub
Private Sub fg_BeforeScrollTip(ByVal Row As Long)
' the ScrollTip will show a string such as
' "Row 5: Accounts Receivable"
fg.ScrollTipText = " Row " & Row & ": " & fg.TextMatrix(Row, 0) & " "
End Sub
Note that you may also implement regular tooltips in Visual Basic by trapping the MouseMove event and setting the ToolTipText property.
Boolean
False