HeaderPane
Main
Hide
Share Link
Print

ArrowLocationEnum Enumeration

Defines the location of the stem of a balloon style tooltip (ToolTipAppearanceEnum.Balloon).

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

Syntax

public enum ArrowLocationEnum;
Public Enum ArrowLocationEnum

Values

NameDescription
TopLeftThe stem is anchored near the left of the top side of the tooltip window.
TopRightThe stem is anchored near the right of the top side of the tooltip window.
RightTopThe stem is anchored near the top of the right side of the tooltip window.
RightBottomThe stem is anchored near the bottom of the right side of the tooltip window.
BottomLeftThe stem is anchored near the left of the bottom side of the tooltip window.
BottomRightThe stem is anchored near the right of the bottom side of the tooltip window.
LeftTopThe stem is anchored near the top of the left side of the tooltip window.
LeftBottomThe stem is anchored near the bottom of the left side of the tooltip window.

Comments

Defines the location of the stem of a balloon style tooltip (ToolTipAppearanceEnum.Balloon).

The stem points at the data it references.

Examples

C#

            int xcenter = cr.Width / 2;
            int ybottom = cr.Height - SystemInformation.HorizontalScrollBarHeight;
            Rectangle r;

            InfoTip.Clear();

            InfoTip.Add(4, new Point(xcenter / 2, ybottom / 4), "", 
                        "This demo will show some of the many features you will find in this product.\n\n" +
                        "To end this demo, please close this window.", ArrowLocationEnum.TopLeft, null, null);

            InfoTip.Add(5, new Point(xcenter / 2, ybottom / 4), "", "From simple tree control...", ArrowLocationEnum.TopLeft, SimpleTree, null);
            InfoTip.Add(5, new Point(xcenter / 2, ybottom / 4), "", "...back to a grid-like hierarchical tree control", ArrowLocationEnum.TopLeft, ComplexTree, null);

            InfoTip.Add(new Point(xcenter, 0 + sftTree1.Headers.Height / 2), "Optional headers with one or multiple rows");
            InfoTip.Add(new Point(xcenter, ybottom - sftTree1.Footers.Height / 2), "Optional footers with one or multiple rows");

VB.NET

Public Class InfoTip
    Private Shared InfoTips As New Microsoft.VisualBasic.Collection()
    Public Delegate Sub FPtr()

    Private _Loc As Point
    Private _Text As String
    Private _Title As String
    Private _ArrowLoc As ArrowLocationEnum = -1
    Private _Func As FPtr = Nothing
    Private _FuncEnd As FPtr = Nothing
    Private _Interval As Integer = 0

    Sub New(ByVal Interval As Integer, ByVal Loc As Point, ByVal Title As String, ByVal Text As String, ByVal ArrowLoc As ArrowLocationEnum, ByVal Func As FPtr, ByVal FuncEnd As FPtr)
        Me._Interval = Interval * 1000
        Me._Title = Title
        Me._Loc = Loc

See Also | Classes | SftTree/NET 3.0