<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : 4k monitor and large buttons</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : 4k monitor and large buttons]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 22:40:41 +0000</pubDate>
  <lastBuildDate>Thu, 29 Aug 2019 10:44:40 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=23863</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[4k monitor and large buttons : Thanks Artem! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23863&amp;PID=77473&amp;title=4k-monitor-and-large-buttons#77473</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 23863<br /><strong>Posted:</strong> 29 August 2019 at 10:44am<br /><br />Thanks Artem!<br>]]>
   </description>
   <pubDate>Thu, 29 Aug 2019 10:44:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23863&amp;PID=77473&amp;title=4k-monitor-and-large-buttons#77473</guid>
  </item> 
  <item>
   <title><![CDATA[4k monitor and large buttons : Hello,Fix will be available in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23863&amp;PID=77471&amp;title=4k-monitor-and-large-buttons#77471</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 23863<br /><strong>Posted:</strong> 29 August 2019 at 3:29am<br /><br /><div>Hello,</div><div><br></div><div>Fix will be available in the next beta or final release.<br></div><div><br></div><div><div>Regards,</div>Artem Gontarenko</div>]]>
   </description>
   <pubDate>Thu, 29 Aug 2019 03:29:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23863&amp;PID=77471&amp;title=4k-monitor-and-large-buttons#77471</guid>
  </item> 
  <item>
   <title><![CDATA[4k monitor and large buttons : Great! What version will the fix...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23863&amp;PID=77462&amp;title=4k-monitor-and-large-buttons#77462</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 23863<br /><strong>Posted:</strong> 26 August 2019 at 10:36am<br /><br /><div>Great! What version will the fix be in?</div><div><br></div><div>Even if I can't move to that version, I can see what code change is actually needed and apply the fix locally.<br></div>]]>
   </description>
   <pubDate>Mon, 26 Aug 2019 10:36:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23863&amp;PID=77462&amp;title=4k-monitor-and-large-buttons#77462</guid>
  </item> 
  <item>
   <title><![CDATA[4k monitor and large buttons : I&amp;#039;ve fixed button size and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23863&amp;PID=77461&amp;title=4k-monitor-and-large-buttons#77461</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 23863<br /><strong>Posted:</strong> 26 August 2019 at 7:56am<br /><br /><div>I've fixed button size and function GetStretchIconSizeDPIAwareness. <br></div><div>Thus icons 40*40 (100 DPI) and 80*80 (200 DPI) are scaled and not go out of the button edge in below.</div><div><img src="uploads/9012/Ribb&#111;nSample_NsgEBuT853.png" height="518" width="887" border="0" /><br></div><div><div>Regards,</div>Artem Gontarenko</div>]]>
   </description>
   <pubDate>Mon, 26 Aug 2019 07:56:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23863&amp;PID=77461&amp;title=4k-monitor-and-large-buttons#77461</guid>
  </item> 
  <item>
   <title><![CDATA[4k monitor and large buttons : Hello, I&amp;#039;ve checked ribbon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23863&amp;PID=77460&amp;title=4k-monitor-and-large-buttons#77460</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 23863<br /><strong>Posted:</strong> 26 August 2019 at 6:27am<br /><br />Hello, I've checked ribbon button with png images 40*40 and 80*80 in 100 DPI and 200 DPI (Office 2016 theme). <br>I've get next result - see screenshots. <br>With 100 DPI we can see image go out of the button edge in below, but with 200 DPI all right.<br><img src="uploads/9012/Ribb&#111;nSample_pqUAjeQKf1.png" height="500" width="795" border="0" /><br><div><br></div><div>Note: in Ribbon Image Resources specification states the following </div><div>"At 96 dpi, large images are 32x32 pixels in size and small images are 16x16 pixels in size." And at 192 dpi, large images are 64x64 pixels in size and small images are 32x32 pixels in size.</div><div>(https://docs.microsoft.com/en-us/windows/win32/windowsribbon/windowsribbon-imageformats)</div><div>Thus for you can use icon sizes specified in the specification to fix this problem.</div><br><div>Since version 19.0 you can use xaml icons for ribbon it fixed many problems with DPIs.</div><div><br></div><div>Regards,</div><div>Artem Gontarenko<br></div>]]>
   </description>
   <pubDate>Mon, 26 Aug 2019 06:27:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23863&amp;PID=77460&amp;title=4k-monitor-and-large-buttons#77460</guid>
  </item> 
  <item>
   <title><![CDATA[4k monitor and large buttons : I have a button on my ribbon that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23863&amp;PID=77373&amp;title=4k-monitor-and-large-buttons#77373</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 23863<br /><strong>Posted:</strong> 15 June 2019 at 11:24am<br /><br /><div>I have a button on my ribbon that uses a 40x40 PNG image. On a non-scaled desktop the control draws fine. When I go to a 4k monitor scaled at 200%, we supply a 80x80 image. The result is that the image draws such that it overlaps the text under the image.</div><div><br></div><div>Debugging led me to GetStretchIconSizeDPIAwareness. DPI icon scaling is not enabled so the code goes to the "else" statement.</div><div><br></div><div>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //save original size of icon<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; szIcon.cx = pImage-&gt;GetWidth();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; szIcon.cy = pImage-&gt;GetHeight();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; //reduce icon size if it is bigger than control<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (szIcon.cx &gt; szAvailable.cx || szIcon.cy &gt; szAvailable.cy)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; szAvailable.cx -= nDpiScallingButtonMarginX * 2;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; szAvailable.cy -= nDpiScallingButtonMarginY * 2;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; szIcon = GetStretchIconSize(pImage, szAvailable);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br></div><div><br></div><div>Examining the if statement note sizIcon.cx is 80 and szAvailable is (84,123). So the available size is not reduced by the margins (4 and 4) * 2 and the call to GetStretchIconSize is not made. It appears that this leads to the image displaying over the text that is under the icon (style is icon with caption below).</div><div><br></div><div>My quick fix is to avoid allowing images to exceed 64x64. But that isn't really correct. The 80x80 image should display correctly even if it gets slightly reduced.<br></div>]]>
   </description>
   <pubDate>Sat, 15 Jun 2019 11:24:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23863&amp;PID=77373&amp;title=4k-monitor-and-large-buttons#77373</guid>
  </item> 
 </channel>
</rss>