Defines the location of the stem of a balloon style tooltip (ToolTipAppearanceEnum.Balloon).
Class: (none)
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public enum ArrowLocationEnum;
Public Enum ArrowLocationEnum
| Name | Description |
|---|---|
| TopLeft | The stem is anchored near the left of the top side of the tooltip window. |
| TopRight | The stem is anchored near the right of the top side of the tooltip window. |
| RightTop | The stem is anchored near the top of the right side of the tooltip window. |
| RightBottom | The stem is anchored near the bottom of the right side of the tooltip window. |
| BottomLeft | The stem is anchored near the left of the bottom side of the tooltip window. |
| BottomRight | The stem is anchored near the right of the bottom side of the tooltip window. |
| LeftTop | The stem is anchored near the top of the left side of the tooltip window. |
| LeftBottom | The stem is anchored near the bottom of the left side of the tooltip window. |
Defines the location of the stem of a balloon style tooltip (ToolTipAppearanceEnum.Balloon).
The stem points at the data it references.
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");
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 = LocSee Also | Classes | SftTree/NET 3.0