How to add a tooltip next to command C# API ?

How to add a tooltip next to command C# API ?

traiduong014969
Collaborator Collaborator
310 Views
3 Replies
Message 1 of 4

How to add a tooltip next to command C# API ?

traiduong014969
Collaborator
Collaborator

Hi all,

Recently, I learned how to create a command in the ribbon and successfully implemented it. However, I have a question. By default, when I type a command, I notice that some commands display an icon and a tooltip when I drag mouse point them for a short time. I would like to achieve the same for my command. Can someone help me with this?

Thank you !

traiduong014969_0-1740402309323.png

 

 

0 Likes
311 Views
3 Replies
Replies (3)
Message 2 of 4

Jeff_M
Consultant
Consultant

Add a RibbonToolTip to the Button. 

Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 3 of 4

traiduong014969
Collaborator
Collaborator

actually, I also use some properties on ribbon tooltip properties, but I don't know I only work in ribbon and not work in command that i type on the keyboard. You can see in this picture above.

I want to create the same on ribbon and also have icon. I tried with CUIx method, and it works, however when i with RUNTIME method, it does not work.

ToolTip = new RibbonToolTip()
{
    Title = "Support",
    Content = "ABC TEST",
    ExpandedContent = "ABC TEST",
    ExpandedImage = imgTooltip, 
    Command = "V1",          
    IsProgressive = true

}

0 Likes
Message 4 of 4

ActivistInvestor
Mentor
Mentor

AutoCAD refers to these as Command Tooltips. You can look at this topic

0 Likes