Skip to content

Replies

0
Gavin Fuchs
Gavin Fuchs answered on Oct 12, 2015 8:10 AM

Hi, 

I tried like you suggested but the result is not fulfilling my expectations.

The popUpMenueTools which are created dynamically

PopupMenuTool popUp = new PopupMenuTool(row.CHILDID.ToString());
popUp.Settings.ShowToolTips = DefaultableBoolean.True;

The ultraToolBarManager 

ultraToolbarsManager1.ShowToolTips = true;
ultraToolbarsManager1.ToolTipDisplayStyle = Infragistics.Win.UltraWinToolbars.ToolTipDisplayStyle.Formatted;

The Event as you suggested

private void ultraToolbarsManager1_MouseEnterElement(object sender, UIElementEventArgs e)
{
DefaultableBoolean result = e.Element.Enabled ? DefaultableBoolean.False : DefaultableBoolean.True;
this.ultraToolbarsManager1.ShowToolTips = !e.Element.Enabled;
this.ultraToolbarsManager1.MenuSettings.ShowToolTips = result;
if (e.Element.Enabled)
e.Element.ToolTipItem = null;
}

 

The tooltips are still displayed when the ButtonTools are allowed. Also i found that opening a popupmenu with a disabled tooltip the tooötip first is not displayed until i enter it after I entered an allowed one in the same PopUp menu. 

And yeah I want this just only for ButtonTools because I do not have any other tools in the toolbar. Thanks in advance 

0
Gavin Fuchs
Gavin Fuchs answered on Oct 8, 2015 10:11 AM

Hi,

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.aspx

But no ToolTip is displayed anymore 

 

0
Gavin Fuchs
Gavin Fuchs answered on Oct 1, 2015 12:22 PM

Hi, 

I forgot to mention that the ButtonControl is inside a PopupMenuTool. If this is important

0
Gavin Fuchs
Gavin Fuchs answered on Oct 1, 2015 12:12 PM

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?