<?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 : Bad collapsed group image display</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Bad collapsed group image display]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:00:24 +0000</pubDate>
  <lastBuildDate>Fri, 16 Jun 2017 03:43: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=22753</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[Bad collapsed group image display : Hello rdhd,I think your e-mail...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75883&amp;title=bad-collapsed-group-image-display#75883</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22753<br /><strong>Posted:</strong> 16 June 2017 at 3:43am<br /><br />Hello rdhd,<br><br>I think your e-mail is correct, &nbsp;and can suppose that you press "Un-Watch this topic" in "Topic Options" in upper left corner of this page. (icon with <font color="#990000"><b>red gear</b></font>). To return back notification press "Watch this topic", however if you post here something then it should turns on notifications again.<br><br>Also I have fixed one another issue - ribbon group icons are drawn only with the smallest available size. It is unacceptable in HighDPI monitors. Changes in the same methods&nbsp;<span style=": rgb248, 248, 252;">CXTPRibbonMarkupTheme::DrawControlGroupPopup() &nbsp;and&nbsp;CXTPRibbonThemeResource::DrawControlGroupPopup(). I have changed code snippet in post above.</span><br><table width="99%"><tr><td><pre class="BBcode">CXTPImageManagerIcon* pImageIcon = pControlGroupPopup-&gt;GetImage(<b><font color="#00cc00">pControlGroupPopup-&gt;GetIconSize().cx</font></b>);</pre></td></tr></table><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Fri, 16 Jun 2017 03:43:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75883&amp;title=bad-collapsed-group-image-display#75883</guid>
  </item> 
  <item>
   <title><![CDATA[Bad collapsed group image display : Hi Oleksandr,That&amp;#039;s good...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75882&amp;title=bad-collapsed-group-image-display#75882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> 22753<br /><strong>Posted:</strong> 15 June 2017 at 5:45pm<br /><br />Hi Oleksandr,<br><br>That's good news. I assume we will have a fix in an upcoming release.<br><br>By the way, I used to get e-mails for replies. I just happened to log in today for another reason and saw the recent activity UI and recognized that it was a reply to this issue I posted. Not sure why I'm not getting e-mails.<br>]]>
   </description>
   <pubDate>Thu, 15 Jun 2017 17:45:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75882&amp;title=bad-collapsed-group-image-display#75882</guid>
  </item> 
  <item>
   <title><![CDATA[Bad collapsed group image display :   rdhd wrote:Running CJ 17 Beta...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75881&amp;title=bad-collapsed-group-image-display#75881</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22753<br /><strong>Posted:</strong> 14 June 2017 at 6:42am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by rdhd" alt="Originally posted by rdhd" style="vertical-align: text-bottom;" /> <strong>rdhd wrote:</strong><br /><br />Running CJ 17 Beta 3. Using the Office 2010/2007 ribbon themes when a group has an image associated with it and the group is collapsed, CJ is not drawing the frame around the image in the correct spot (or is drawing a frame that should not be drawn. This only occurs with small icons. If we have large icons for the group, CJ uses it and we don't see the display issue. The display issues doesn't show up in the Office 2013 White theme we use. I can show this in the sample. I skipped registering the large icons and then stopped in debug and deposited the file new ID into the control group popup created when I resized the frame so the view tab's window group was collapsed. Here is the image. Note the "frame" drawn just above (and intersecting) the group icon. Looks like either the icon is in the wrong place or the "frame" is (but why even draw the frame). Comparing our ribbon with some collapsed groups using a large icon and some a small, I see the top edge of the "frame" aligns with the top edge of our large collapsed group icons. So the small icon is probably just dropped too low to cover up this "frame" we see.<br><br><img src="uploads/3213/cmdribb&#111;nic&#111;ns.PNG" height="141" width="406" border="0" /><br>We could use a fix for this.<br></td></tr></table><br><br>Hello rdhd,<br><br>I found solution for this issue. Mistake was in the same method&nbsp;<span style="font-family: &quot;Courier New&quot;, Courier, mono; : rgb248, 248, 252;">DrawControlGroupPopup()</span>&nbsp;<table width="99%"><tr><td><pre class="BBcode"><font face="Courier New, Courier, mono">CSize CXTPRibbonThemeResource::DrawControlGroupPopup(CDC* pDC, CXTPControlPopup* pControlGroupPopup, BOOL bDraw)</font><pre ="bbcode"="" style="width: 1309.41px; : rgb248, 248, 252;"><div>{</div><div>&nbsp; &nbsp; ASSERT(pDC);</div><div>&nbsp; &nbsp; ASSERT(pControlGroupPopup);</div><div>&nbsp; &nbsp; CXTPRibbonGroup *pRibbonGroup = pControlGroupPopup-&gt;GetRibbonGroup();</div><div><br></div><div>&nbsp; &nbsp; if (!pRibbonGroup)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; ....</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; if (bDraw)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; ....</div><div>&nbsp; &nbsp; }</div><div>....</div>    if (bDraw)    {        CXTPImageManagerIcon* pImageIcon = pControlGroupPopup-&gt;GetImage(<b><font color="#00cc00">pControlGroupPopup-&gt;GetIconSize().cx</font></b>);        BOOL bDrawImage = (pImageIcon != NULL);        CRect rcButton = pControlGroupPopup-&gt;GetRect();        if (bDrawImage)<div><span style="font-family: Verdana, Arial, Helvetica, sans-serif;">&nbsp; &nbsp; &nbsp; &nbsp; {</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <font color="#00cc00"><b>CSize sz(m_pPaintManager-&gt;m_bAutoResizeIcons ? m_pPaintManager-&gt;GetAutoIconSize(TRUE) : pImageIcon-&gt;GetExtent());</b></font></div><div><font color="#00cc00"><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</b></font></div><div><font color="#00cc00"><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (m_pPaintManager-&gt;IsDPIIconsScallingEnabled(pControlGroupPopup))</b></font></div><div><font color="#00cc00"><b>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sz = XTP_DPI(sz);</b></font></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CPoint pt = CPoint(rcButton.CenterPoint().x - sz.cx / 2, rcButton.top + <font color="#00cc00"><b>XTP_DPI_Y(9)</b></font>);</div><div><br></div><div>            if (sz.cx &lt; XTP_DPI_X(20))            {                CXTPResourceImage* pImageButton = LoadImage(FormatName(_T("RIBBONGROUPBUTTONICON")));                <b><font color="#00cc00">CSize szImageButton(pImageButton != NULL ? pImageButton-&gt;GetExtent() : sz);                </font></b></div><font color="#00cc00"><b>                //Increase ImageButton if it is smaller than icon                const int nImageButtonMarginX = XTP_DPI_X(5) * 2;                if ((szImageButton.cx - sz.cx) &lt; nImageButtonMarginX)                    szImageButton.cx = sz.cx + nImageButtonMarginX;                                const int nImageButtonMarginY = XTP_DPI_Y(5) * 2;                if ((szImageButton.cy - sz.cy) &lt; nImageButtonMarginY)                     szImageButton.cy = sz.cy + nImageButtonMarginY;</b></font><div>                CRect rc(CPoint(rcButton.CenterPoint().x - <b><font color="#00cc00">szImageButton</font></b>.cx / 2,                    rcButton.top + XTP_DPI_Y(2)), <b><font color="#00cc00">szImageButton</font></b>);                if (pImageButton) pImageButton-&gt;DrawImage(pDC, rc, pImageButton-&gt;GetSource(0, 1), CXTPEmptyRect());                <b><font color="#00cc00">pt.x = rc.CenterPoint().x - sz.cx / 2;                pt.y = rc.CenterPoint().y - sz.cy / 2;</font></b>            }</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; m_pPaintManager-&gt;DrawImage(pDC, pt, sz, pImageIcon,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pControlGroupPopup-&gt;GetSelected(), pControlGroupPopup-&gt;GetPressed(),</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pControlGroupPopup-&gt;GetEnabled(), FALSE, pControlGroupPopup-&gt;GetPopuped());</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>....</div></pre><span style=": rgb248, 248, 252; font-family: &quot;Courier New&quot;, Courier, mono;">}</span></pre></td></tr></table>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Wed, 14 Jun 2017 06:42:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75881&amp;title=bad-collapsed-group-image-display#75881</guid>
  </item> 
  <item>
   <title><![CDATA[Bad collapsed group image display : Hello,I&amp;#039;m glad to inform...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75874&amp;title=bad-collapsed-group-image-display#75874</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22753<br /><strong>Posted:</strong> 09 June 2017 at 9:11am<br /><br />Hello,<br><br>I'm glad to inform your that issues with scaling of group icons have fixed.<br>Added dependency from m_pPaintManager-&gt;m_bAutoResizeIcons and m_pPaintManager-&gt;IsDPIIconsScallingEnabled() &nbsp;in &nbsp;CXTPRibbonMarkupTheme::DrawControlGroupPopup() &nbsp;and&nbsp;CXTPRibbonThemeResource::DrawControlGroupPopup<br><br><table width="99%"><tr><td><pre class="BBcode"><font color="#999999">/*code moved to next post to prevent duplication.*/</font></pre></td></tr></table><br>Fix will be available soon in final v18.0<br><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Fri, 09 Jun 2017 09:11:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75874&amp;title=bad-collapsed-group-image-display#75874</guid>
  </item> 
  <item>
   <title><![CDATA[Bad collapsed group image display : After the fix for the images on...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75547&amp;title=bad-collapsed-group-image-display#75547</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22753<br /><strong>Posted:</strong> 09 February 2017 at 4:08pm<br /><br />After the fix for the images on the tooltips, please also fix the problem with icons on the collapsed ribbon group tabs.<div><br></div><div>-cpede&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 09 Feb 2017 16:08:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75547&amp;title=bad-collapsed-group-image-display#75547</guid>
  </item> 
  <item>
   <title><![CDATA[Bad collapsed group image display : Still not fixed in v17.3!See Ribbon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75256&amp;title=bad-collapsed-group-image-display#75256</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22753<br /><strong>Posted:</strong> 31 October 2016 at 4:42am<br /><br />Still not fixed in v17.3!<div><br></div><div>See Ribbon Sample, set Ribbon icons to not Auto Size Icons, and collaps the INSERT group and look at the Symbols group icon when collapsed.</div><div><br></div><div><img src="uploads/686/XTToolkit_17.30_Ribb&#111;n_Group_Ic&#111;n_Scaling.png" height="204" width="344" border="0" /><br><div><br></div><div>-cpede</div></div>]]>
   </description>
   <pubDate>Mon, 31 Oct 2016 04:42:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75256&amp;title=bad-collapsed-group-image-display#75256</guid>
  </item> 
  <item>
   <title><![CDATA[Bad collapsed group image display : Can anyone confirm that this will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75149&amp;title=bad-collapsed-group-image-display#75149</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22753<br /><strong>Posted:</strong> 26 September 2016 at 10:25am<br /><br />Can anyone confirm that this will be fixed in v17.3?<div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Mon, 26 Sep 2016 10:25:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75149&amp;title=bad-collapsed-group-image-display#75149</guid>
  </item> 
  <item>
   <title><![CDATA[Bad collapsed group image display : Of cause the group icons should...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75061&amp;title=bad-collapsed-group-image-display#75061</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22753<br /><strong>Posted:</strong> 06 September 2016 at 8:55am<br /><br /><div>Of cause the group icons should follow the&nbsp;<span style="line-height: 16.8px; : rgb248, 248, 252;">m_bAutoResizeIcons flag.</span></div><div><br></div>So will this be corrected for v17.3.0?<div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Tue, 06 Sep 2016 08:55:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75061&amp;title=bad-collapsed-group-image-display#75061</guid>
  </item> 
  <item>
   <title><![CDATA[Bad collapsed group image display : Hi,I found that these icons of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75060&amp;title=bad-collapsed-group-image-display#75060</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 22753<br /><strong>Posted:</strong> 06 September 2016 at 7:54am<br /><br />Hi,<br>I found that these icons of collapsed groups &nbsp;are drawn in &nbsp;CXTPRibbonPaintManager<span style="line-height: 16.8px;">::DrawControlGroupPopup (pure virtual which are</span>&nbsp;implemented in &nbsp;CXTPRibbonThemeResource and&nbsp;CXTPRibbonMarkupTheme).<br><br>There used only XTP_DPI macros<table width="99%"><tr><td><pre class="BBcode">CSize sz(XTP_DPI(pImageIcon-&gt;GetExtent()));</pre></td></tr></table> no&nbsp;<span style=": rgb248, 248, 252;"><span style="line-height: 16.8px;">m_bAutoResizeIcons.</span><br><br><span style="line-height: 16.8px;">I think it should depend on&nbsp;</span>pCommandBar-&gt;GetCommandBars()-&gt;GetCommandBarsOptions()-&gt;GetToolbarsIconsScalling(). It can be checked with&nbsp;IsDPIIconsScallingEnabled(), but now this is standalone function, which should be &nbsp;member of paintManager. After these changes &nbsp;calculation icons of collapsed groups is<br><br><span style="line-height: 16.8px;"><table width="99%"><tr><td><pre class="BBcode"></span></span><span style="line-height: 16.8px; : rgb255, 255, 255;">&nbsp; &nbsp;&nbsp;</span><span style=": rgb248, 248, 252;">CSize sz(pImageIcon-&gt;GetExtent());</span><span style=": rgb248, 248, 252;"><div><br></div><div>&nbsp; &nbsp; if (m_pPaintManager-&gt;IsDPIIconsScallingEnabled(pControlGroupPopup))</div></span>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style=": rgb248, 248, 252;">sz = XTP_DPI(sz);</span><span style="line-height: 16.8px; : rgb248, 248, 252;"></pre></td></tr></table><br><br>I'm not sure of using&nbsp;</span><span style="line-height: 16.8px; : rgb248, 248, 252;">m_bAutoResizeIcons there. I think it is task to &nbsp;refactoring Ribbon/CommandBar for using icons set for different DPIs.<br><br>Regards,<br>&nbsp;Oleksandr Lebed</span>]]>
   </description>
   <pubDate>Tue, 06 Sep 2016 07:54:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75060&amp;title=bad-collapsed-group-image-display#75060</guid>
  </item> 
  <item>
   <title><![CDATA[Bad collapsed group image display : When using v17.20 the collapsed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75042&amp;title=bad-collapsed-group-image-display#75042</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22753<br /><strong>Posted:</strong> 02 September 2016 at 4:08am<br /><br />When using v17.20 the collapsed group images in the Ribbon bar are displayed scaled (using a DPI of 125%) even m_bAutoResizeIcons&nbsp;is set to false. The normal icons are displayed correctly non scaled.<div><br></div><div>This is clearly a bug, where this&nbsp;<span style="line-height: 16.8px;">m_bAutoResizeIcons</span><span style="line-height: 16.8px;">&nbsp;</span><span style="line-height: 1.4;">flag is not taken into account when groups are collapsed in the Ribbon bar.</span></div><div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Fri, 02 Sep 2016 04:08:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22753&amp;PID=75042&amp;title=bad-collapsed-group-image-display#75042</guid>
  </item> 
 </channel>
</rss>