HeaderPane
Main
Hide
Share Link
Print

ToolTipStyle Field, ToolTipEventArgs Class

Defines the appearance of the tooltip. This value can be modified by the ShowToolTip event handler.

Class: ToolTipEventArgs
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public ToolTipAppearanceEnum ToolTipStyle;
Public ToolTipStyle As ToolTipAppearanceEnum

Comments

Defines the appearance of the tooltip. This value can be modified by the ShowToolTip event handler.

Examples

C#

        }

        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) {
            DumpValues("SplitterOffsetChanged", e);
        }

VB.NET

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
    DumpValues("SplitterOffsetChanged", e)
End Sub

See Also ToolTipEventArgs Class | Classes | SftTree/NET 3.0