HeaderPane
Main
Hide
Share Link
Print

ToolTipAppearanceEnum Enumeration

Defines the appearance of the tooltip.

Class: (none)
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

public enum ToolTipAppearanceEnum;
Public Enum ToolTipAppearanceEnum

Values

NameDescription
RectangleThe tooltip is displayed within a rectangular window, sized to fit its contents.
BalloonThe tooltip is displayed within a "balloon" window, with a stem pointing at the data it references.

Comments

Defines the appearance of the tooltip.

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 | Classes | SftTree/NET 3.0