Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
470
Scrollbar with scrolltip
posted

Using the UltraWinScrollbar, is there a way to turn on scroll tips like you can on the scrollbar in the UltraWinGrid? I would like a tip that shows the value of the scrollbar.

Parents
No Data
Reply
  • 37774
    posted

    I don't believe that there is any functionality built into the scrollbar to handle this, but you could certainly show your own ToolTip:

    private Infragistics.Win.ToolTip tt;
    private void ultraScrollBar1_MouseHover(object sender, EventArgs e)
    {
        if (this.tt != null && this.tt.IsVisible)
            this.tt.Hide();

        this.tt = new Infragistics.Win.ToolTip(this.ultraScrollBar1);
        this.tt.ToolTipText = this.ultraScrollBar1.Value.ToString();
        tt.Show(Cursor.Position);
    }

    You could do a similar thing in the MouseDown or ValueChanged event, changing the location of the ToolTip accordingly.

    -Matt

Children
No Data