Defines the tooltip icon, used with balloon style tooltips only (ToolTipAppearanceEnum.Balloon); scrolltips display the icon with any tooltip style. This value can be modified by the ShowToolTip and ShowScrollTip event handlers. The default is ToolTipIcon.None.
Class: ToolTipEventArgs
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public ToolTipIcon ToolTipIcon;
Public ToolTipIcon As ToolTipIconDefines the tooltip icon, used with balloon style tooltips only (ToolTipAppearanceEnum.Balloon); scrolltips display the icon with any tooltip style. This value can be modified by the ShowToolTip and ShowScrollTip event handlers. The default is ToolTipIcon.None.
private void sftTree1_ShowScrollTip(object sender, Softelvdm.SftTreeNET.ToolTipEventArgs e) {
DumpValues("ShowScrollTip", e);
}
private void sftTree1_ShowToolTip(object sender, Softelvdm.SftTreeNET.ToolTipEventArgs e) {
DumpValues("ShowToolTip", e);
if (e.Usage == UsageLocationEnum.items && e.Cell != null && e.Cell.OwningItem.VisibleIndex == 2 && e.Cell.ColumnIndex == 3) {
e.ToolTipIcon = ToolTipIcon.Info;
e.ToolTipTitle = "Balloon Tooltip";
e.ToolTipStyle = Softelvdm.Controls.ToolTipAppearanceEnum.Balloon;
e.ToolTipText = "A simple explanatory tooltip\nfor just this cell";
}
}
private void sftTree1_SplitterOffsetChanged(object sender, EventArgs e) {Private Sub SftTree1_ShowScrollTip(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.ToolTipEventArgs) Handles SftTree1.ShowScrollTip DumpValues("ShowScrollTip", e) End Sub Private Sub SftTree1_ShowToolTip(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.ToolTipEventArgs) Handles SftTree1.ShowToolTip DumpValues("ShowToolTip", e) If e.Usage = UsageLocationEnum.items And Not e.Cell Is Nothing And e.Cell.OwningItem.VisibleIndex = 2 And e.Cell.ColumnIndex = 3 Then e.ToolTipIcon = ToolTipIcon.Info e.ToolTipTitle = "Balloon Tooltip" e.ToolTipStyle = Softelvdm.Controls.ToolTipAppearanceEnum.Balloon e.ToolTipText = "A simple explanatory tooltip" + vbCrLf + "for just this cell" End If End Sub Private Sub SftTree1_SplitterOffsetChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTree1.SplitterOffsetChanged
See Also ToolTipEventArgs Class | Classes | SftTree/NET 3.0