.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Extended help feature for a toolbar button

0 REPLIES 0
Reply
Message 1 of 1
stardust1611
290 Views, 0 Replies

Extended help feature for a toolbar button

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.
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost