How to Get the tooltip's text of a button

How to Get the tooltip's text of a button

KM_Yotsuha
Advocate Advocate
260 Views
1 Reply
Message 1 of 2

How to Get the tooltip's text of a button

KM_Yotsuha
Advocate
Advocate

I can get a button's name by EnumChildWindows and GetWindowText method. Is there a way to get tooltip's text of a button?

 

KM_Yotsuha_0-1688633495924.png

 

 

 

0 Likes
Accepted solutions (1)
261 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni
Accepted solution

You can access this information using functionality from AdWindows.dll. This Autodesk UI DLL is supported for AutoCAD.NET, afaik, but not officially for Revit, afaik. Still, it works and does its thing. The Translate Revit Tooltips application demonstrates its use to both read and write all the Revit tooltips:

  

https://thebuildingcoder.typepad.com/blog/2011/07/translate-revit-tooltips.html

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes