Print Page | Close Window

Fuzzy icons with 18

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=23559
Printed Date: 28 March 2024 at 5:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Fuzzy icons with 18
Posted By: Fredrik
Subject: Fuzzy icons with 18
Date Posted: 02 February 2018 at 5:24am
When I upgraded from 17.3 to 18 all the ribbon icons became fuzzy. Not the best example below but here we can see that the 18 images become larger (and this without any changes in the code). 




The code is 

<CODE>   
   pCommandBars->GetPaintManager()->m_bAutoResizeIcons = TRUE;
   pCommandBars->GetCommandBarsOptions()->SetDPIScallingOptions(TRUE);
</CODE>

and if I set m_bAutoResizeIcons to false it looks good for me (Windows 10), not sure how it will look under other OS:es. BUT, then the minitoolbar is too small. I only have 16 and 32 px versions of my icons.

What should I do to keep my ribbon as in 17.3 but still get properly sized mini toolbar icons? 




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



Replies:
Posted By: olebed
Date Posted: 02 February 2018 at 2:57pm
Hello,

See http://forum.codejock.com/forum_posts.asp?TID=23038&PID=75291&title=dpi-awareness-for-icons-in-ribbon#75291" rel="nofollow - this topic with explanations.
In your case I can offer to set size of small and large icons as
	CXTPCommandBarsOptions* pOptions = pCommandBars->GetCommandBarsOptions();
pOptions->szIcons = CSize(16, 16);
pOptions->szLargeIcons = CSize (32, 32);

pCommandBars->GetPaintManager()->m_bAutoResizeIcons = FALSE;
pCommandBars->GetCommandBarsOptions()->SetDPIScallingOptions(TRUE);
Regards,
 Oleksandr Lebed


Posted By: Fredrik
Date Posted: 14 February 2018 at 7:36am
Hi Oleksandr, thanks for your reply. 

I tried your solution (and a similar solution) and the icons in the ribbon becomes good however - then the the problem is the minitoobar icons which becomes both fuzzy and too small. 



I don't seem to be able to get both Ribbon icons AND the minitoolbar icons crisp at the same time - it is either/or?


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


Posted By: mgampi
Date Posted: 20 February 2018 at 3:15am
Hi;

I have the same problem with small icons. I added them separately in size 16/16 but they are fuzzy.
Any idea how to solve it?


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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