Print Page | Close Window

Shrinking icons with 20.1

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24231
Printed Date: 03 May 2024 at 6:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Shrinking icons with 20.1
Posted By: rconn
Subject: Shrinking icons with 20.1
Date 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?



Replies:
Posted By: markr
Date Posted: 01 November 2021 at 5:12pm
Have you tried calling XTPDpiHelper()->EnableDpiBitmapScaling(TRUE) from your app's InitInstance() method?


Posted By: Fredrik
Date Posted: 09 November 2021 at 8:43am
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: 
https://forum.codejock.com/dpi-issues-with-png-icons-and-xtp-20-1_topic24214.html" rel="nofollow - DPI issues with PNG icons and XTP 20.1 - Codejock Developer Community . 


-------------
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net