Hi,
Is there a way to delay when the built-in tooltip on a cell shows up. When I hover over a cell that has more text than will fit in the display area of the cell, it pops a tooltip up over the cell that gives the full text of the cell. I just want to delay when the cell tooltip pops up.
Thanks,~Karen
Indeed, I do call the ShowToolTip method, but it seems I am calling it correctly, since I have the tree as argument of the method.
Ok, it's time I show you my code. Here is the event method in a component that holds my UltraTree :
private void treeView_MouseEnterElement(object sender, Infragistics.Win.UIElementEventArgs e) { Point pt = new Point(e.Element.Rect.X, e.Element.Rect.Y); Infragistics.Win.UltraWinTree.UltraTreeNode node = this.treeView.GetNodeFromPoint(pt); if (node != null) { TreeNodeTag nodeTag = node.Tag as TreeNodeTag; if (nodeTag.Element != null) { Infragistics.Win.UltraWinToolTip.UltraToolTipInfo tipInfo = new Infragistics.Win.UltraWinToolTip.UltraToolTipInfo(nodeTag.Information, Infragistics.Win.ToolTipImage.Default, "", Infragistics.Win.DefaultableBoolean.True); this.ultraToolTipManager1.SetUltraToolTip(this.treeView, tipInfo); this.ultraToolTipManager1.ShowToolTip(this.treeView); this.ultraToolTipManager1.GetUltraToolTip(this.treeView); } else { this.ultraToolTipManager1.HideToolTip(); this.ultraToolTipManager1.SetUltraToolTip(this.treeView, null); } } }
With this code, there is a delay only the first time a tooltip is displayed, and then when my mouse goes from node to node, there is no delay anymore. Only the contents of the tooltip changes of course, but the tooltip is not hidden until I leave the tree.
I want to tooltip to hide when I leave the node. What am I doing wrong ?
Juscher said:Is it the bug you are talking about ? Or is there a way to have a delay between two tooltips of different tree nodes (but not the cells of a same node) ?
No, the bug I was referring to was a bug in the WinGrid, not the tree. And it was fixed a long time ago.
I'm not sure what's happening in this case, but it sounds like you are calling ShowToolTip directly instead of assigning the tooltip you want to the tree control. ShowToolTip shows the tooltip immediately. If you assign the tooltip to the tree based on the mouse position, then there will be the usual delay.
Hello,
I have a multi-column tree (Outlook style), where I have set an UltraTooltipManager so I can display custom tooltips.
The problem is, when I hover over the tree nodes, the tooltip changes instantly, and thus it is always displayed (with changing content). This is a disturbing behaviour, because the never-hiding tooltip hides adjacent nodes.
Is it the bug you are talking about ? Or is there a way to have a delay between two tooltips of different tree nodes (but not the cells of a same node) ?
Use the TipStyleCell property.
Mike,
How do you turn off the grid's built-in tooltips?
Thanks,
Neha