Shrinking icons with 20.1 |
Post Reply |
Author | |
rconn
Groupie Joined: 16 May 2007 Location: United States Status: Offline Points: 77 |
Post Options
Thanks(0)
Posted: 29 October 2021 at 11:06am |
My app is working with 20.0. When I updated to 20.10, I'm having a problem with the commandbar icons shrinking when the display scale is changed. 100% works, 200% shrinks the icons (instead of increasing their size -- I'd be OK with them just remaining their original 32x32 instead of shrinking to 16x16 or smaller).
The only code change was to remove the deprecated SetDPIScalingOptions(TRUE) call, and replace it with the recommended SetDPIScalingOptions(TRUE) and EnableDpiGalleryItemScaling(TRUE) calls. (I've tried with one or the other, both, and neither; it doesn't affect the results.) Is there something more I need to do in 20.10 to get the icons to scale properly?
|
|
markr
Senior Member Joined: 01 August 2004 Status: Offline Points: 443 |
Post Options
Thanks(0)
|
Have you tried calling XTPDpiHelper()->EnableDpiBitmapScaling(TRUE) from your app's InitInstance() method?
|
|
Fredrik
Senior Member Joined: 22 June 2005 Status: Offline Points: 235 |
Post Options
Thanks(0)
|
I can't get it to work, even with calling XTPDpiHelper()->EnableDpiBitmapScaling(TRUE) using RibbonSample - just see the pre-Office 2013 themes which are the ones using PNG images.
I have a similar question in another thread: DPI issues with PNG icons and XTP 20.1 - Codejock Developer Community. |
|
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |