ComponentOne VSFlexGrid 8.0
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 tool tip 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

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback