Hi there,
I am trying to show a ToolTip on a ButtonTool. So I add the ButtonTool to the Tools of the Toolbar like toolBase = ultraToolbarsManager1.Toolbars[0].Tools.AddTool("SOMEKEY");
I ensure ToolTips are showing with:
ultraToolbarsManager1.ShowToolTips = true; ultraToolbarsManager1.ToolTipDisplayStyle = Infragistics.Win.UltraWinToolbars.ToolTipDisplayStyle.Formatted;
And set the ToolTipText of the Button with
toolBase.SharedProps.ToolTipText = "SOME TEXT";
The Property ShouldDisplayToolTip is still false. On which properties the depends. What do I have to do to show the ToolTip of the ButtonTool. And can it be displayed when the ButtonTool.SharedProps.Enabled = false?
Hi Gavin,
The tooltip should work out of the box, including when it's disabled.
I attached a sample here that shows how I set this up. The sample has two buttons: one added through the designer and one added in code. Please take a look at the sample and compare it to your project.
Hi Mike,
I tried the example and it works. I do have exactly the same settings like you, but I got a style for the controls. Is it possible that something like that destroys the tooltip?
Hi,
I forgot to mention that the ButtonControl is inside a PopupMenuTool. If this is important
Hello Gavin,
In order for tooltips to be displayed for child tools of PopupMenus, the ShowToolTips property needs to be set to True on either the UltraToolbarsManager's MenuSettings or each individual PopupMenu's Settings object. This should get your tooltips showing appropriately.
Let me know if you have any questions.
Chris
so I managed to show the tooltips for the ButtonTools with:
PopupMenuTool popUp = new PopupMenuTool("SOMEKEY"); popUp.Settings.ShowToolTips = DefaultableBoolean.True;
The last question now is, how to disable all the default tooltips for each ButtonTool
I tried to set ToolTipDisplayStyle in the UltraToolBarsManager as suggested in http://www.infragistics.com/community/forums/t/63466.aspxBut no ToolTip is displayed anymore