Tooltip on button

Tooltip on button

Anonymous
Not applicable
1,983 Views
17 Replies
Message 1 of 18

Tooltip on button

Anonymous
Not applicable
Is it possible to add a tooltip to a custom button (macro button).
Default seems to be the "sub name" as tooltip.

Lars Andersson
0 Likes
1,984 Views
17 Replies
Replies (17)
Message 2 of 18

Anonymous
Not applicable
This is not currently possible.

-Brian

"Lars Andersson" wrote in message
news:1896AF73781188D534045BB96768F06B@in.WebX.maYIadrTaRb...
> Is it possible to add a tooltip to a custom button (macro button).
> Default seems to be the "sub name" as tooltip.
>
> Lars Andersson
>
>
Message 3 of 18

Anonymous
Not applicable
A bit of clarification. It is not currently possible to define a tooltip
for a button created for a VBA macro. If you create buttons through an
Add-In for your own commands you can define the tool tip and the description
text that displays at the bottom of the Inventor window.

-Brian

"Brian Ekins (Autodesk)" wrote in message
news:...
> This is not currently possible.
>
> -Brian
>
> "Lars Andersson" wrote in message
> news:1896AF73781188D534045BB96768F06B@in.WebX.maYIadrTaRb...
> > Is it possible to add a tooltip to a custom button (macro button).
> > Default seems to be the "sub name" as tooltip.
> >
> > Lars Andersson
> >
> >
>
>
0 Likes
Message 4 of 18

Anonymous
Not applicable
Brian,

Do you think or know that it will be possible in the future?

Lars

"Brian Ekins (Autodesk)" skrev i meddelandet
news:3F4A5BBF287AA289331382E91BEEDE24@in.WebX.maYIadrTaRb...
> A bit of clarification. It is not currently possible to define a tooltip
> for a button created for a VBA macro. If you create buttons through an
> Add-In for your own commands you can define the tool tip and the
description
> text that displays at the bottom of the Inventor window.
>
> -Brian
>
> "Brian Ekins (Autodesk)" wrote in message
> news:...
> > This is not currently possible.
> >
> > -Brian
> >
> > "Lars Andersson" wrote in message
> > news:1896AF73781188D534045BB96768F06B@in.WebX.maYIadrTaRb...
> > > Is it possible to add a tooltip to a custom button (macro button).
> > > Default seems to be the "sub name" as tooltip.
> > >
> > > Lars Andersson
> > >
> > >
> >
> >
>
>
0 Likes
Message 5 of 18

Anonymous
Not applicable
I don't know. This is really an Inventor user interface issue rather than
an API issue so I'm not directly involved in the planning.

-Brian

"Lars Andersson" wrote in message
news:F0D01E33C6B6FDC4103FB5889F1FAE6D@in.WebX.maYIadrTaRb...
> Brian,
>
> Do you think or know that it will be possible in the future?
>
> Lars
>
> "Brian Ekins (Autodesk)" skrev i meddelandet
> news:3F4A5BBF287AA289331382E91BEEDE24@in.WebX.maYIadrTaRb...
> > A bit of clarification. It is not currently possible to define a
tooltip
> > for a button created for a VBA macro. If you create buttons through an
> > Add-In for your own commands you can define the tool tip and the
> description
> > text that displays at the bottom of the Inventor window.
> >
> > -Brian
> >
> > "Brian Ekins (Autodesk)" wrote in message
> > news:...
> > > This is not currently possible.
> > >
> > > -Brian
> > >
> > > "Lars Andersson" wrote in message
> > > news:1896AF73781188D534045BB96768F06B@in.WebX.maYIadrTaRb...
> > > > Is it possible to add a tooltip to a custom button (macro button).
> > > > Default seems to be the "sub name" as tooltip.
> > > >
> > > > Lars Andersson
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes
Message 6 of 18

miechh
Collaborator
Collaborator

I was asking myself the same question, but it seems that seven and a half years later still nothing has changed; can't change the tooltiptext for my macro's. I know, we all want to sit in the front row for just a dime (dutch expression Smiley Very Happy), but it would be so cool to also have your own tool-tip-text present for custom macro's/buttons. In AutoCAD you can add macro's to a custom button on a custom toolbar AND create tool-tip-texts for that button. So why can't this be made possible for Inventor.


Product Design Suite 2024
Inventor 2024 (v 28.20.27200.0000), Vault Basic 2024
Fusion 360
HP Workstation Z4
Intel Xeon 3.4GHz
32GB RAM
Windows 10 Professional (64bit)
Message 7 of 18

Anonymous
Not applicable

Another 7 years later (13 years in total!)

 

Still not possible I believe?

Would be very cool indeed!

Message 8 of 18

weiser
Advocate
Advocate

Some people are arriving later than the other ....

I did not find a way to get a tooltop for custom button in Inventor 2019 too?

Or do I missed somehing?

0 Likes
Message 9 of 18

bradeneuropeArthur
Mentor
Mentor

Hi,

Could you give me the name of the macrobutton?

I prepared something that seems to work here.

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 10 of 18

AlexFielder
Advisor
Advisor

In lieu of @bradeneuropeArthur replying with a working solution, for background, you can use the "ProgressiveTooltip" property of a button to create a fly-out image like this:

ProgressiveToolTip.gif

 

Based on the following:

button1 = new InventorButton(buttonPlugin.Path, buttonPlugin.ButtonDisplayName, buttonPlugin.ButtonInternalName, buttonPlugin.Description, buttonPlugin.ToolTip, icon1, icon1, buttonPlugin.ProgressiveToolTipImagePath, CommandTypesEnum.kShapeEditCmdType, ButtonDisplayEnum.kDisplayTextInLearningMode);
button1.ButtonDef.ProgressiveToolTip.Description = buttonPlugin.ProgressiveToolTipDescription;
button1.ButtonDef.ProgressiveToolTip.ExpandedDescription = buttonPlugin.ProgressiveToolTipExpandedDescription;
button1.ButtonDef.ProgressiveToolTip.IsProgressive = true;
button1.ButtonDef.ProgressiveToolTip.Title = buttonPlugin.ProgressiveToolTipTitle;

I don't have an example I can share that makes it any simpler than ^.

Message 11 of 18

weiser
Advocate
Advocate

Hi,

the macro I want to describe is named "Mxx" from the module "Bemaßung".

looking forward to your answer!

Thanks in advance

0 Likes
Message 12 of 18

weiser
Advocate
Advocate

Hi Alex,

I've red the article about the progressive tooltip but didn't understand where to put the code.....

So may be you can help me out with an tutorial for newbies....

Thans in advance

 

0 Likes
Message 13 of 18

bradeneuropeArthur
Mentor
Mentor

I have figured it out.

Please send me a private message as reminder.

I will upload the code. I am far from my desk right now.

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 14 of 18

bradeneuropeArthur
Mentor
Mentor

With this code you can:

Add macro button to the ribbon.

Add a tooltip with text and image.

run VBA macros with your code set.

 

Public Sub main()

Dim a As Application
Set a = ThisApplication

Dim b As Ribbon
Set b = a.UserInterfaceManager.Ribbons.Item(2) ' "Part"

Dim c As RibbonTab
Set c = b.RibbonTabs.Item(2) ' "id_TabFlatPattern"

Dim rp As RibbonPanel
Set rp = c.RibbonPanels.Item(1) ' "id_PanelP_Model2DSketchCreate"

Dim bu As ButtonDefinition

Dim MCD As MacroControlDefinition
Dim cd As ControlDefinition
Set MCD = a.CommandManager.ControlDefinitions.AddMacroControlDefinition("YourModuleName.YourRoutineName2") ' For Example Module1.Main
MCD.ProgressiveToolTip.ExpandedDescription = "This could be your additional description...."
MCD.ProgressiveToolTip.Image = "C:\Files\YourImage.jpg"
rp.CommandControls.AddMacro MCD, False

End Sub

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 15 of 18

bradeneuropeArthur
Mentor
Mentor

With this code you can add additional:

  • Tooltips
  • images
  • expanded descriptions

To existing VBA commands that have been added by the user.

You need to know the name of the macro of course.

Public Sub main()

Dim a As Application
Set a = ThisApplication

Dim MCDDefaultUser As MacroControlDefinition
Set MCDDefaultUser = a.CommandManager.ControlDefinitions.Item("Macro:YourModuleName.YourRoutineName2")

MCDDefaultUser.ProgressiveToolTip.ExpandedDescription = "This could be your additional description...."
MCDDefaultUser.ProgressiveToolTip.Image = "C:\Files\YourImage.jpg"

End Sub

You need to create a button to load this code everytime you start inventor, because vba is not started with inventor.

Or you could use an add in to load run this code, which is the better way I think.

Please let me know if you need help regarding this.

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

Message 16 of 18

bradeneuropeArthur
Mentor
Mentor

Regards,


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 17 of 18

weiser
Advocate
Advocate

Hi there,

can anybody mark Arthur's answer as a solution.... because I can't do it ... aybe I have to be the one to upen up the thread?!

Regards & thanks again to Arthur!

0 Likes
Message 18 of 18

Maxim-CADman77
Advisor
Advisor

@AlexFielder 

What about multi-lingval (progressive) tooltips?
Should I use Select Case?

Please vote for Inventor-Idea Text Search within Option Names