Ribbon smaller icons trigger

Ribbon smaller icons trigger

Joris.vd.Meulen
Collaborator Collaborator
450 Views
1 Reply
Message 1 of 2

Ribbon smaller icons trigger

Joris.vd.Meulen
Collaborator
Collaborator

Hi,

 

I'm resizing Revit, Revit starts to resize the large icons to the small ones. How do I trigger this behaviour?

Now my ribbon icons are either large, or they are turned into a dropdown version (which still have the large icons).

 

To my knowledge I have both LargeImage and Image set (32px / 16px)

 

 

love python coding
0 Likes
451 Views
1 Reply
Reply (1)
Message 2 of 2

JimJia
Alumni
Alumni

I'm afraid neither Revit API nor AdWindows API provides interface to trigger the Ribbon size changing.

 

You may consider to use windows API to achieve this, please refer to pages below:

https://stackoverflow.com/questions/692742/how-do-you-programmatically-resize-and-move-windows-with-...

https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-findwindowa

https://social.msdn.microsoft.com/forums/en-US/2cff89f1-b5b6-4783-bb5b-350e43cd55ab/moveresize-windo...

 

Hope it's helpful, please correct me if I missing anything.

 

 


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes