Can someone please explain how to add extended help feature to a toolbar button?
I created the ToolTip object like this:
string executableName = System.Windows.Forms.Application.StartupPath;
Autodesk.Windows.RibbonToolTip rtt = new RibbonToolTip();
rtt.Command = "DOSOMETHING";
rtt.Title = "Window";
rtt.Content = "Does something";
rtt.ExpandedContent = "This is the expanded content.";
BitmapImage bi = new BitmapImage();
bi.BeginInit();
bi.UriSource = new Uri(executableName + "\\MyApp\\hlpimage.png");
bi.EndInit();
rtt.ExpandedImage = bi;
When I add this to a ribbon button it works perfectly, but how do I add it to a toolbar button?
I tried this but it doesn't work:
mmW.macro.addToolTipProperty((IPropertyBag)rtt);
mmw is a menu macro that I created for a toolbar button, and it works well, but when I add the above line, the whole thing ceases to work.