Windows 10 display scaling and ibbon images

Add-in Express™ Support Service
That's what is more important than anything else

Windows 10 display scaling and ibbon images
 
Thomas




Posts: 134
Joined: 2005-10-21
Hello,

Happy new year everybody!

I'm developing an add-in for Office 2016 / Windows 10. I want to make this add-in full compatible with the Windows 10 scalling (I'm working on a 5K display).

I made all my images compatible for the scaling, but I'm having some trouble with the ribbon's images. Do you have any advice about how to implement scaled images in Office ribbon?

Thank you.

Regards.
Thomas.
Posted 02 Jan, 2017 06:47:50 Top
Dmitry Kostochko


Add-in Express team


Posts: 2731
Joined: 2004-04-05
Hi Thomas,

You can use the Glyph property of your ribbon components, i.e. a ribbon button. In the OnRibbonBeforeCreate event handler you can detect the current DPI and set correct images for your controls.
Posted 02 Jan, 2017 07:17:54 Top
Thomas




Posts: 134
Joined: 2005-10-21
Hi Dmitry,

Thank you. I loaded all images in a resource file and set the correct image on the OnRibbonBeforeCreate event.

Regards,
Thomas.
Posted 09 Jan, 2017 13:36:37 Top
Andrei Smolin


Add-in Express team


Posts: 14129
Joined: 2006-05-11
Hello Thomas,

Congratulations! ))

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 10 Jan, 2017 03:28:23 Top