Hello,
Can somebody tell me how to set a tooltip on an ultraTreeNode, I've been searching a lot lately but I can't figure it out.
is it that complicated?
I saw this code
private void ultraTree1_MouseEnterElement(object sender, Infragistics.Win.UIElementEventArgs e) { if (e.Element is Infragistics.Win.UltraWinTree.NodeTextUIElement) { Point pt = new Point(e.Element.Rect.X, e.Element.Rect.Y); Infragistics.Win.UltraWinTree.UltraTreeNode node = this.ultraTree1.GetNodeFromPoint(pt); 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); this.ultraToolTipManager1.GetUltraToolTip(this.ultraTree1); } } else this.ultraToolTipManager1.HideToolTip(); }
but it doesn't seem to work, nothing shows up
does sy have an example of a working code?
Thx
I pasted that code as is into an existing project and it worked. If you have a simple application that you can zip and attach here, we can take a look and try to help.
Hello !
I am replacing a standard tree by an UltraTree. On the standard tree there was a simple way to handle tooltips, which could be affected directly to the nodes and could be read when needed, like this :
node.ToolTipText
I am looking to a way to do this with the UltraTree. The code above is far too long for what I want to do - there must be another way. Could you tell me which attribute I have to use to read the tooltip of a particular UltraTreeNode ?
Juscher said:I understand it conflicts with the default tooltip you mentioned
Thank you, Brian. I will see what I can do with the sample code provided here. I just want additional information to be displayed when the mouse pointer hovers over a tree node, but I understand it conflicts with the default tooltip you mentioned.
Juscher said:...there must be another way