ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBDropdown.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.C1TrueDBDropdown1.ScrollTips = True

       End Sub

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

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

       End Sub

·      C#

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

       {

           this.c1TrueDBDropdown1.ScrollTips = true;

       }

       private void c1TrueDBDropdown1_FetchScrollTips(object sender, FetchScrollTipsEventArgs e)

       {

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

       }

·      Delphi

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

       begin

         Self.C1TrueDBDropdown1.ScrollTips := True;

       end;

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

       begin

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

       end;

See Also

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


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