ComponentOne List 8.0 for ActiveX
Scroll Tracking and ScrollTips

In some instances, you may want the list control scroll bars to be a bit more interactive, allowing the user to see changes and helpful information as they navigate through the control data. By using the ScrollTrack property, the list control contents is updated as the scrollbar thumb is moved. With the ScrollTips property, an informational pop-up is provided, containing whatever content you choose.

If the ScrollTrack property is set to True, moving the scrollbar thumb causes vertical scrolling of the list display. By default, this property is False, and no scrolling occurs until the thumb is released. The ScrollTrack property can be set at design-time or in code similar to the example below.

Example Title
Copy Code
Private Sub chkSTracking_Click()

    TDBList1.ScrollTrack = chkSTracking.Value

End Sub

If the ScrollTips property is set to True, moving the scrollbar thumb causes the FetchScrollTips event to fire. You can use this event to track the position of the scroll bar on a record by record basis. You can also use this event to present the user with useful information relating to the current record or recordset. When used in tandem, the ScrollTrack and ScrollTips properties provide users with visual feedback when scrolling through large recordsets.

Example Title
Copy Code
Private Sub ChkSTips_Click()

    TDBList1.ScrollTips = chkSTips.Value

End Sub
Note: You must create an event handler to define the contents of your ScrollTips. For more information, see Tutorial 21 - Cell Bordering and Scroll Tips/Tracking.

 

 


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

Product Support Forum  |  Documentation Feedback