Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

ToolTip Property, SftTree Class

Returns the control's ToolTipClass instance defining tooltips.

Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public ToolTipClass ToolTip { get; }
Public ReadOnly Property ToolTip As ToolTipClass

Value

The ToolTipClass class instance.

Comments

Returns the control's ToolTipClass instance defining tooltips.

The instance of the ToolTipClass class describes attributes that apply to all tooltips in a SftTree/NET control. Numerous properties and methods can be accessed using the returned object.

A control has one ToolTipClass instance for tooltips (ToolTip property) and one for scrolltips (SftTree.ScrollTip property).

Examples

C#

            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.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");

VB.NET

    sftTree1.Initializing = True
    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")

See Also SftTree Class | Classes | SftTree/NET 2.0



Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.