Defines the appearance of the tooltip.
Class: (none)
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public enum ToolTipAppearanceEnum;
Public Enum ToolTipAppearanceEnum
| Name | Description |
|---|---|
| Rectangle | The tooltip is displayed within a rectangular window, sized to fit its contents. |
| Balloon | The tooltip is displayed within a "balloon" window, with a stem pointing at the data it references. |
Defines the appearance of the tooltip.
}
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);
}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