ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.ScrollTips Property

Gets or sets a value that determines whether the grid displays a pop-up text window when the scrollbar thumb is dragged.

[Visual Basic]

Public Property ScrollTips As Boolean

[C#]

public bool ScrollTips {get;set;}

[Delphi]

public property ScrollTips: Boolean read get_ScrollTips write set_ScrollTips;

Remarks

By default, this property is set to False, and ScrollTips are not displayed.

If the ScrollTips property is set to True, the FetchScrollTips event will be raised whenever the grid's scrollbar thumb is dragged.

If a handler is not provided for the FetchScrollTips event, tips will not be displayed.

Example

The following code sets the ScrollTips property to True, and the FetchScrollTips event is raised. The FetchScrollTips event handler is set to show a scroll tip:

·      Visual Basic

       Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

           Me.C1TrueDBGrid1.ScrollTips = True

       End Sub

       Private Sub C1TrueDBGrid1_FetchScrollTips(ByVal sender As Object, ByVal e As C1.Win.C1TrueDBGrid.FetchScrollTipsEventArgs) Handles C1TrueDBGrid1.FetchScrollTips

           e.ScrollTip = "Here is a scroll tip."

       End Sub

·      C#

       private void Form1_Load(object sender, System.EventArgs e)

       {

           this.c1TrueDBGrid1.ScrollTips = true;

       }

       private void c1TrueDBGrid1_FetchScrollTips(object sender, C1.Win.C1TrueDBGrid.FetchScrollTipsEventArgs e)

       {

           e.ScrollTip = "Here is a scroll tip.";

       }

·      Delphi

       procedure Form1_Load(sender: System.Object; e: System.EventArgs);

       begin

         Self.C1TrueDBGrid1.ScrollTips := True;

       end;

       procedure C1TrueDBGrid1_FetchScrollTips(sender: System.Object; e: FetchScrollTipsEventArgs);

       begin

         e.ScrollTip := 'Here is a scroll tip.';

       end;

See Tutorial 22 - Borders, Scroll Tracking, and Scroll Tips for an example of scroll tips being used within an application.

See Also

C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.