A form in my application has an UltraTrackBar control. I need to modify it so that a tooltip with the current value displays when the user mouses over the control. The TrackBar control in Windows Forms supports tooltips, but I cannot find any properties in UltraTrackBar that appear to support this.
So my question is twofold: Why doesn't UltraTrackBar support tooltips? And what is a good way to get the UltraTrackBar in our control to support tooltips within a relatively short term?
Thanks in advance.
We were able to use a standard Windows Forms ToolTip for this. In the form, we also now have an UltraToolTipManager. The code looks something like the following, but it just puts the tooltip at a certain place on the form rather than binding it to the UltraTrackBar control.
Infragistics.Win.UltraWinToolTip.UltraToolTipInfo ultraToolTipInfo = new
Infragistics.Win.UltraWinToolTip.UltraToolTipInfo(this.ultraTrackBar1.Value.ToString(), ToolTipImage.None, "Value", DefaultableBoolean.Default);
this.ultraToolTipManagerTrackBar.SetUltraToolTip(this, ultraToolTipInfo);
// ... set the position of the tooltip based on the track bar's location and current value, then:
this.ultraToolTipManagerTrackBar.ShowToolTip(this, false, new Point(x, y));
This workaround is not an elegant solution. Having the UltraTrackBar support the tooltip would be a much better way to do this, but at least end users will not see much if any difference with this.
Hi,
I took a look at the inbox trackbar and I don't see any built-in tooltip functionality in it by default and I don't see any properties to turn this on. Am I missing something?
Tooltips are typically provided by the inbox ToolTip Component, or, if you want a nicer look to your tooltips, you could use the Infragistics UltraToolTip component.