We are using UltraChart 8.3 for windows. Recently we are experiencing a problem on display Tooltips.
The tooltips can be correctly displayed in our main window. But when I create a new window on top of the main window, and display chart in this new window, tooptip just won't show. I can only see a circle at the data point, but not the tooltip text. There is no difference on how the chart gets created and displayed in the main window or floating window.
I suspect it's related with the parent of the forms.
Any clue?
Thanks,
Zongwen
sorry i didn't finish my post.
I was going asking, by looking at the control list from the from, i can see it's Infragistics Tooltip, and where is the WinDockManager in place?
Thanks
I am using UltraChart.
musakhan:
your sample project uses a Windows Forms ToolTip with the UltraDockManager; the WinChart is not involved. for an answer, please post your question in the WinDockManager forum: http://community.infragistics.com/forums/84.aspx
i can tell you that using the Infragistics ToolTip instead will resolve this problem:
new UltraToolTipManager().SetUltraToolTip(lbl, new UltraToolTipInfo("TooltipForLabel", ToolTipImage.None, "", DefaultableBoolean.True));
It gives me an exception when I added your code. I figured that GetProperty returnes null. How do I get the tooltip control?
Now I tried to loop though all controls inside the winform.Controls collection and find the one with type of IGWinTooltip. Then I call .BringToFront from that control. It seems to work. Is the tooltip control always reside directly under the winform?
zongwen,
there's not a lot we can do if you're going to call BringToFront() on your panel, which has the same parent as the tooltip. this causes the panel to be placed in front of the tooltip, obscuring it.
you could call this code afterwards...
Control tooltip = typeof(UltraChart).GetProperty("Tooltip", BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.GetProperty).GetValue(chart, null) as Control; tooltip.BringToFront();