Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
355
Disable the default tooltiptext (that uses the caption) for some buttons in the toolbarManager
posted

Hi,

Is it possible to disable the tooltiptext for some buttons in the ultraToolbarManager and to enable it for the other buttons. I want to disable the default  tooltiptext for buttons having the DisplayStyle  set to ToolDisplayStyle.TextOnlyAlways .

Regards.

Parents
  • 71886
    Verified Answer
    Offline posted

    Hello,

    A possible approach to achieve this might be by hooking to the MouseEnterElement event and hide the tooltips:

            private void ultraToolbarsManager1_MouseEnterElement(object sender, UIElementEventArgs e)

            {

                if (e.Element is ButtonToolUIElement && ((ButtonToolUIElement)e.Element).Tool.DisplayStyleResolved == ToolDisplayStyle.TextOnlyAlways)

                    ((ButtonToolUIElement)e.Element).Tool.OwningRibbonGroup.Settings.ShowToolTips = DefaultableBoolean.False;

                else if (e.Element is ButtonToolUIElement) ((ButtonToolUIElement)e.Element).Tool.OwningRibbonGroup.Settings.ShowToolTips = DefaultableBoolean.True;

            }

Reply Children
No Data