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
1440
How to I get ButtonTool's tooltip to be displayed not in rectangle but ellipse like ultratooltipmanager tooltips
posted

I have a bunch of ButtonTools in an ultraToolbarsManager. The ButtonTools tooltips appear in a rectangle. What must I do to get those tooltips in appear in an ellipse with a indicator to which object the tooltips belongs like the UltraToolTipManger does. I tried to placethe ButtonTool in the  UltraToolTipManger but that failed.

What do I have to do to resolve the problem.

And please show me some code or a project that does what I am asking and not some bolony answer like see this article are just some guess that does not work.

  • 53790
    Suggested Answer
    posted

    Hello Sfrierdi,

    Maybe one possible approach to achieve the desired behvaior is to disable default UltraToolbarsManager`s tooltip and using UltraToolTipManager.  I made small sample that show this approach. Please take a look at the code below and attached sample. Please let me know if you have any questions.

    namespace UltraToolbarManagerWithTooltips

    {

        public partial class Form1 : Form

        {

            public Form1()

            {

                InitializeComponent();

            }

     

            private void ultraToolbarsManager1_MouseEnterElement(object sender, Infragistics.Win.UIElementEventArgs e)

            {

                if (e.Element.GetType() == typeof(ButtonToolUIElement))

                {

                        UltraToolTipInfo info = new UltraToolTipInfo();

                        info.ToolTipText = ((ButtonToolUIElement)e.Element).Text;

                   

                        ultraToolTipManager1.SetUltraToolTip(this, info);

                        ultraToolTipManager1.ShowToolTip(this);

                   

                }

            }

     

            private void ultraToolbarsManager1_MouseLeaveElement(object sender, Infragistics.Win.UIElementEventArgs e)

            {

                ultraToolTipManager1.HideToolTip();

            }

        }

    }

     

    UltraToolbarManagerWithTooltips.zip