The dbicSlide control has built-in capability to display a popup tooltip in one of two modes: Simple Value Tip or a more Advanced Tip functionality. Both tips are designed by default to display the current value of the slider as the thumb is moved along the track.
The Simple Value tip uses the standard .NET tooltip control to display the value, and has a static appearance.
The Advanced tip is a custom control built into the dbicSlide, that allows the developer complete control over the appearance of the tooltip when it is displayed.
To display either tooltip, first the ToolTipPosition property must be set to a value other than “None”. The options for the ToolTipPosition are “None”, “Top”, “Bottom”, and “Right”. Setting the ToolTipPosition property to “None” prevents either tip from being displayed.
Additionally, the ToolTipDistance property cen be used to adjust the display location of both tooltips relative to the thumb. Values greater than 0 move the tooltip further away from the respective edge of the thumb in the direction assigned to the ToolTipPosition property, while values less than zero move the tooltip in the opposite direction.
To use the advanced tooltip the ToolTipAdvanced property must be set to True ( in addition to the ToolTipPosition property being set as noted above).
The advanced tooltip can be further customized using the following properties on the control: ToolTipAdvancedAlignment, ToolTipAdvancedBackColor, ToolTipAdvancedBackColorTo, ToolTipAdvancedBorderColor, ToolTipAdvancedBorderType, ToolTipAdvancedFillType, ToolTipAdvancedFont and ToolTipAdvancedForeColor.
Each time the Advanced tip is about to display, two events will fire allowing the developer further chances to customize the appearance of the tooltip.
The BeforeAdvancedTip event will fire each time an advanced tip is to display and allow the developer a chance to adjust each of the unique properties of the advanced tip listed above, as well as the following:Location, Size and the Text. Additionally the developer can choose to suppress the tip in this event if they do not want it to display.
The UserDrawnAdvancedTip event will fire just before each unique advanced tooltip is displayed in the control. In this event the developer can completely override the display of the advanced tooltip and render whatever they want as the presentation of the tooltip.