How does one add and remove a tooltip to a tree node in the UltraTree?
I want to just tool tip certain tree nodes and not every tree node in the UltraTree?
The UltraTree Miscellaneous Features example UltraTree tooltips its not but no where in thde code it toolip features are turn on or of. How is the setting for the UltraTree in this example able to tooltip and how is the various different text for each tooltip getting set?
Hello,
I recommend you to use the following approach in order to achieve having a flexible tooltips:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=10000.
Please do not hesitate to contact us if you need any additional assistance.
I found an example on line with source code that was written with Infreagistics 6.3 version. That example did just what I needed. The example provided a handler the UtlraTree's MouseEnter event and the use of the UltraTooTipManger to determine whether a tooltip was displayed or not. Listed below is the example MouseEnter event handler from the example. I modified the example to fit my own requirements.
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); } } else this.ultraToolTipManager1.HideToolTip();}
I see that you did well. I am glad that this example help you in order to achieve the desired scenario. This approach is very flexible in my opinion so you could modify it in many ways.
Is there away to get the UltraTreeNode items tooltips to appear while items are being drag over UltraTreeNode items? The UltraTree's MouseEnter event does not get called when items are being dragged over the UltraTreeNode items. The dragged items being dragged are displayed when dragged over UltreTreeNode items but the UltreTreeNode items tooltips are not displayed. Can you suggest a solution to get the UltreTreeNode items tooltips to display while items are dragged over them?
Hi,
Did you take a look at the mentioned thread ? Because both threads are yours :-)
sfrierdi said:If you do not know the answer just say so
So here is my answer - the copy of other thread:
Hello Sfrierdi,
Maybe one possible approach to achieve the desired behavior is to use multi- threading and UltraToolTipManager. I try to reproduce your scenario in a small sample. Please take a look at the attached project for more details and Demo video. Please let me know if you have any questions.
Regards
Why don't you just answer the question. If you do not know the answer just say so.
I suppose that this question is duplicate with that forum thread: http://community.infragistics.com/forums/p/63327/321030.aspx#321030 Please take a look there and if you have any questions, do not hesitate to write us.