Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Fuzzy icons with 18
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Fuzzy icons with 18

 Post Reply Post Reply
Author
Message
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 235
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post Topic: Fuzzy icons with 18
    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
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 02 February 2018 at 2:57pm
Hello,

See 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
Back to Top
Fredrik View Drop Down
Senior Member
Senior Member


Joined: 22 June 2005
Status: Offline
Points: 235
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fredrik Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.234 seconds.