Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
UltraWinTree - Tooltip issue
posted

Hello,

I am using Infragistics2.Win.UltraWinTree.v9.1.

I am setting tooltips for the tree nodes as below. I am able to display tooltips on mouse hover over the nodes. But when the user moves mouse over the the empty space on the treeview, the tooltips are displayed. How to not to show tooltips over empty space on the treeview?

private void ultraTree1_MouseEnterElement(object sender, Infragistics.Win.UIElementEventArgs e)
        {
            if (e.Element is Infragistics.Win.UltraWinTree.NodeTextUIElement)
            {
                // Get the location of the cursor
                Point pt = new Point(e.Element.Rect.X, e.Element.Rect.Y);
                Infragistics.Win.UltraWinTree.UltraTreeNode node = this.ultraTree1.GetNodeFromPoint(pt);

                // If the cursor is on a Tree node
                if (node != null)
                {
                    Infragistics.Win.UltraWinToolTip.UltraToolTipInfo tipInfo = new Infragistics.Win.UltraWinToolTip.UltraToolTipInfo(node.Text, Infragistics.Win.ToolTipImage.Default, "", Infragistics.Win.DefaultableBoolean.True);
                    this.ultraToolTipManager1.SetUltraToolTip(this.ultraTree1, tipInfo);
                    this.ultraToolTipManager1.ShowToolTip(this.ultraTree1);
                }
            }
         
        }

 

Thanks,

Naveen

WindowsFormsApplication2.zip