Back to Devexpress

ContextItem.ToolTipIconType Property

windowsforms-devexpress-dot-utils-dot-contextitem-28f5a2f1.md

latest5.1 KB
Original Source

ContextItem.ToolTipIconType Property

Gets or sets the icon in a regular tooltip shown when the mouse pointer hovers over the button.

Namespace : DevExpress.Utils

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
[DefaultValue(ToolTipIconType.None)]
[DXCategory("ToolTip")]
public virtual ToolTipIconType ToolTipIconType { get; set; }
vb
<DXCategory("ToolTip")>
<DefaultValue(ToolTipIconType.None)>
Public Overridable Property ToolTipIconType As ToolTipIconType

Property Value

TypeDefaultDescription
ToolTipIconTypeNone

A ToolTipIconType enumeration value that specifies the icon in a regular tooltip shown when the mouse pointer hovers over the button.

|

Available values:

NameDescription
Application

A tooltip contains the default application icon.

| | Asterisk |

A tooltip contains the system asterisk icon.

| | Error |

A tooltip contains the system error icon.

| | Exclamation |

A tooltip contains the system exclamation icon.

| | Hand |

A tooltip contains the system hand icon.

| | Information |

A tooltip contains the system information icon.

| | Question |

A tooltip contains the system question icon.

| | Warning |

A tooltip contains the system warning icon.

| | WindLogo |

A tooltip contains the Windows logo icon.

| | None |

A tooltip contains no predefined icon.

|

Remarks

Use a context button’s SuperTip property to assign a super tooltip to the button. To assign a regular tooltip, use the following properties:

  • ToolTip — gets or sets the tooltip text.
  • ToolTipTitle — gets or sets the title displayed above the text.
  • ToolTipIconType — gets or sets the icon that indicates whether the tooltip contains an error, warning, question, or other information.

See the following topic for more information about regular and super tooltips: Hints and Tooltips.

Rating Scale and Track Bar

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.

Disable Tooltips

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.

csharp
pictureEdit1.Properties.ContextButtonOptions.ShowToolTips = false;
vb
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

ToolTip

ToolTipTitle

ShowToolTips

Context Buttons

ContextItem Class

ContextItem Members

DevExpress.Utils Namespace