BeforeScrollTip Event

Fired before a scroll tip is shown so you can set the ScrollTipText property.

Syntax

Private Sub VSFlexGrid_BeforeScrollTip( ByVal Row As Long)

Remarks

This event is fired only if the ScrollTips property is set to True. It allows you to set the ScrollTipText property to a descriptive string for the given row.

For example the following code displays a ToolTip as the user drags the vertical scroll bar thumb. The ToolTip displays information about the new top row that will be visible when the user stops scrolling:

    Private Sub Form_Load()

        fg.ScrollTips = True

        fg.Rows = 1

        While fg.Rows < 200

            fg.AddItem vbTab & fg.Rows

        Wend

    End Sub

    Private Sub fg_BeforeScrollTip(ByVal Row As Long)

        fg.ScrollTipText = "New Top Row: " & fg.TextMatrix(Row, 1)

    End Sub

See Also

VSFlexGrid Control