.NET

Reply
Active Contributor
makepeace1
Posts: 28
Registered: ‎01-31-2014
Message 1 of 2 (136 Views)
Accepted Solution

Display Discription and Macro Command on ribbon

136 Views, 1 Replies
04-04-2014 08:17 AM

Would somone be able to tell me how i can add a discription to my button so i can give a discription when somone hovers over it and also say what macro it is going to run

 

This is my button at the moment

 

Dim storetree As New RibbonButton()
            storetree.Text = "Store"
            storetree.ToolTip = "Store"
            storetree.ShowText = True
            storetree.ShowImage = True
            storetree.Image = Images.getBitmap(My.Resources.Store)
            storetree.LargeImage = Images.getBitmap(My.Resources.Store_L)
            storetree.Orientation = System.Windows.Controls.Orientation.Vertical
            storetree.Size = RibbonItemSize.Large
            storetree.CommandHandler = New RibbonCommandHandler()
            storetree.Id = "_Storetree"

 

 

Look into RibbonToolTip object. The code would be like:

 

RibbonToolTip tip=new RibbonToolTip();

tip.Title="My Command";

tip.Content="Do something wonderful";

tip.Command="MyCmd";

 

storetree.ToolTip=tip;

 

*Expert Elite*
norman.yuan
Posts: 1,049
Registered: ‎04-27-2009
Message 2 of 2 (127 Views)

Re: Display Discription and Macro Command on ribbon

04-04-2014 09:20 AM in reply to: makepeace1

Look into RibbonToolTip object. The code would be like:

 

RibbonToolTip tip=new RibbonToolTip();

tip.Title="My Command";

tip.Content="Do something wonderful";

tip.Command="MyCmd";

 

storetree.ToolTip=tip;

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!