HeaderPane
Main
Hide
Share Link
Print

ShowScrollTip Event, SftTree Class

Occurs when a scrolltip is about to be displayed.

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

Syntax

public event ShowScrollTipEventHandler ShowScrollTip;
Public Event ShowScrollTip As ShowScrollTipEventHandler

Comments

Occurs when a scrolltip is about to be displayed.

The event handler can modify fields in the ToolTipEventArgs object to control the appearance and contents of the scrolltip. Scrolltips are displayed while the user drags the vertical scroll bar's scroll box, unless SftTree.ScrollTip.ShowAlways is set to False (the default is True). Setting ToolTipEventArgs.ToolTipText to an empty string suppresses the scrolltip.

Examples

C#

            DumpValues("RadioButtonClicked", e);
        }

        private void sftTree1_SelectionChanged(object sender, EventArgs e) {
            DumpValues("SelectionChanged", e);
        }

        private void sftTree1_ShowScrollTip(object sender, Softelvdm.SftTreeNET.ToolTipEventArgs e) {
            DumpValues("ShowScrollTip", e);
        }

        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;

VB.NET

    DumpValues("RadioButtonClicked", e)
End Sub


Private Sub SftTree1_SelectionChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SftTree1.SelectionChanged
    DumpValues("SelectionChanged", e)
End Sub

Private Sub SftTree1_ShowScrollTip(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.ToolTipEventArgs) Handles SftTree1.ShowScrollTip
    DumpValues("ShowScrollTip", 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

See Also SftTree Class | Classes | SftTree/NET 3.0