Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
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 fits 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#

            sftTree1.TreeLineStyle = TreeLineStyleEnum.None;
            sftTree1.ShowExpandCollapseButtons = ShowExpandCollapseButtonsEnum.None;
            sftTree1.RowHeaders.Width = 0;
            sftTree1.ShowFocusRectangle = false;
            sftTree1.ItemClick += sftTree1_ItemClick;
            sftTree1.ItemDoubleClick += sftTree1_ItemDoubleClick;
            sftTree1.ShowToolTip += new SftTree.ShowToolTipEventHandler(sftTree1_ShowToolTip);
            sftTree1.ToolTip.ShowAlways = true;
            sftTree1.ToolTip.Style = ToolTipAppearanceEnum.Balloon;

            ItemClass cat;
            cat = AddCategory("Category 1");
             AddItem(cat, img, "Item 1");
             AddItem(cat, img, "Item 2");
             AddItem(cat, img, "Item 3");
            cat = AddCategory("Category 2");

VB.NET

    sftTree1.Headers.Rows = 0
    sftTree1.Footers.Rows = 0
    sftTree1.Dimensions.LevelIndent = 5 ' indent just a few pixels for level 1 items
    sftTree1.TreeLineStyle = TreeLineStyleEnum.None
    sftTree1.ShowExpandCollapseButtons = ShowExpandCollapseButtonsEnum.None
    sftTree1.RowHeaders.Width = 0
    sftTree1.ShowFocusRectangle = False
    sftTree1.ToolTip.ShowAlways = True
    sftTree1.ToolTip.Style = ToolTipAppearanceEnum.Balloon

    Dim cat As ItemClass
    cat = AddCategory("Category 1")
     AddItem(cat, img, "Item 1")
     AddItem(cat, img, "Item 2")
     AddItem(cat, img, "Item 3")
    cat = AddCategory("Category 2")

See Also | Classes | SftTree/NET 2.0