windowsforms-devexpress-dot-xtraeditors-dot-baselistboxcontrol-b0c19347.md
Allows you to specify a tooltip shown when the mouse pointer hovers over a context button. This event is only raised for RatingContextButton and TrackBarContextButton objects.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Behavior")]
public event ContextButtonToolTipEventHandler CustomContextButtonToolTip
<DXCategory("Behavior")>
Public Event CustomContextButtonToolTip As ContextButtonToolTipEventHandler
The CustomContextButtonToolTip event's data class is DevExpress.Utils.ContextButtonToolTipEventArgs.
Use a context button’s SuperTip property to assign a super tooltip to the button. To assign a regular tooltip, use the following properties:
See the following topic for more information about regular and super tooltips: Hints and Tooltips.
The RatingContextButton and TrackBarContextButton show the current rating and track value in the default tooltips.
You can handle the owner control’s CustomContextButtonToolTip or the button’s CustomToolTip event to specify custom tooltips. Use the Value event argument to obtain the current value and the Text event argument to specify the tooltip text.
Note
The owner control’s CustomContextButtonToolTip event fires after the button’s CustomToolTip event and overrides its tooltips. Also note that these events do not fire if a super or regular tooltip is assigned to the button.
You can also disable the owner control’s ShowToolTips option to hide tooltips. The button’s ShowToolTips property overrides this option for an individual button.
pictureEdit1.Properties.ContextButtonOptions.ShowToolTips = false;
pictureEdit1.Properties.ContextButtonOptions.ShowToolTips = False
Note
If a context button’s Enabled property is set to false , tooltips are not displayed regardless of the owner control’s ShowToolTips option or the button’s ShowToolTips property.
See Also