ScrollTips Property

Returns or sets whether ToolTips are shown while the user scrolls vertically.

Syntax

[form!]VSFlexGrid.ScrollTips[ = {True | False} ]

Remarks

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.

Data Type

Boolean

Default Value

False

See Also

VSFlexGrid Control