<?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 : Controls</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Last 10 Posts]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 18:07:03 +0000</pubDate>
  <lastBuildDate>Mon, 26 Jan 2026 15:00:58 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>30</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_topic_feed.asp?FID=119</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[Controls : Can I add a control in the ribbon bar caption?]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24243&amp;PID=79328&amp;title=can-i-add-a-control-in-the-ribbon-bar-caption#79328</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> Can I add a control in the ribbon bar caption?<br /><strong>Posted:</strong> 26 January 2026 at 3:00pm<br /><br /><div>Hi dbrookes. Now our UI team says I have to move controls up by the min/max/close. So I revisited this post. Most helpful as I immediately hit the "hide them things from CJ" or things just don't work. I even have the search control up there. I did take a different approach. I subclass from their caption button for our logo and ribbon button/qat controls I put up there so I can specify caption button image sizes. Also, for the search control I took a different approach for measuring it. Since I have other controls and search is to the left of some of them, I pass in the right side. I use the DC to measure the control since it starts off with a zero height.</div><div><br></div><div>CRect OurRibbonBar::GetCommandFinderCaptionRect(CXTPControl *pControlSearch, int nRightSideOfCommandFinder)<br>{<br>&nbsp; &nbsp; using std::min;<br>&nbsp; &nbsp; using std::max;<br><br>&nbsp; &nbsp; CRect rcControl;<br><br>&nbsp; &nbsp; if(m_bCommandFinderOnCaption)<br>&nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; //pControl = pControlSearch;//m_pControls-&gt;FindControl(xtpControlError, ID_HELP_CMD_FINDER, TRUE, FALSE);<br>&nbsp; &nbsp; &nbsp; &nbsp; if(pControlSearch)<br>&nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CRect curRect = pControlSearch-&gt;GetRect();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(nRightSideOfCommandFinder)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int nWidth = curRect.Width();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int nHeight = curRect.Height();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(curRect.Height() == 0)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // CJ Edit controls in the caption get their size set in CXTPRibbonBar::Reposition. They have no height until<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // it is calculated since it depends on the font. So I have to do this at least one time or at least one time<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // per monitor aware monitor change notification which we don't support (yet). CJ doesn't do it because I have<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // to hide controls in the caption area in JCXTPRibbonBar::CalcDockingLayout because if they are visible<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // the CJ code just doesn't work as it doesn't expect controls to actuall be in the caption area and mucks<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // things up.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CClientDC dc(this);<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CSize szControl = pControlSearch-&gt;GetSize(&amp;dc);<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nWidth = szControl.cx;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nHeight = szControl.cy;<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curRect.bottom = curRect.top + nHeight;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curRect.left = nRightSideOfCommandFinder - nWidth;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curRect.right = nRightSideOfCommandFinder; // not adding padding but I might eventually<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int nTopOffset = 0;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( curRect.top == 0 )<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Both of these should always be present.<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CXTPControl* pMinimize = m_pControls-&gt;FindControl(SC_MINIMIZE);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(nullptr == pMinimize)<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pMinimize = m_pControls-&gt;FindControl(SC_CLOSE);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CRect rcCaption;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( pMinimize )<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rcCaption = pMinimize-&gt;GetRect();<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rcCaption = m_rcCaptionText;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nTopOffset = (rcCaption.Height() - curRect.Height())/2;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rcControl = curRect;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rcControl.OffsetRect(0, nTopOffset);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return rcControl;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br><br></div>]]>
   </description>
   <pubDate>Mon, 26 Jan 2026 15:00:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24243&amp;PID=79328&amp;title=can-i-add-a-control-in-the-ribbon-bar-caption#79328</guid>
  </item> 
  <item>
   <title><![CDATA[Controls : HOWTO: Use SVG graphics in CXTPButton control]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24610&amp;PID=79303&amp;title=howto-use-svg-graphics-in-cxtpbutton-control#79303</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> HOWTO: Use SVG graphics in CXTPButton control<br /><strong>Posted:</strong> 07 November 2025 at 4:31pm<br /><br /><div>We use Direct2D to render the SVG to a bitmap taking into account any padding I find the the CJ drawing code and set the bitmap on the button.</div><div><br></div><div>We have been using D2D for a good while now and render bitmaps, icons etc. to put on our ribbon, dialogs, image lists etc. If CJ's SVG support has any api to render a bitmap or icon you can set the bitmap or icon on a button or static and use BS_BITMAP or SS_BITMAP (/ICON).</div><div><br></div><div>Does present a bit of pain when supporting all the Windows DPI contexts since they are pre-rendered.</div>]]>
   </description>
   <pubDate>Fri, 07 Nov 2025 16:31:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24610&amp;PID=79303&amp;title=howto-use-svg-graphics-in-cxtpbutton-control#79303</guid>
  </item> 
  <item>
   <title><![CDATA[Controls : HOWTO: Use SVG graphics in CXTPButton control]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24610&amp;PID=79299&amp;title=howto-use-svg-graphics-in-cxtpbutton-control#79299</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> HOWTO: Use SVG graphics in CXTPButton control<br /><strong>Posted:</strong> 10 October 2025 at 1:18pm<br /><br /><div>Hi;</div><div><br></div><div>How can I use a SVG graphic in a CXTPButton derived control?</div><div><br></div><div>TIA</div>]]>
   </description>
   <pubDate>Fri, 10 Oct 2025 13:18:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24610&amp;PID=79299&amp;title=howto-use-svg-graphics-in-cxtpbutton-control#79299</guid>
  </item> 
  <item>
   <title><![CDATA[Controls : CXTPListBox Item Paint Issue]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24581&amp;PID=79295&amp;title=cxtplistbox-item-paint-issue#79295</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> CXTPListBox Item Paint Issue<br /><strong>Posted:</strong> 07 October 2025 at 9:08am<br /><br /><div>Hello,</div><div><br></div><div>Some problems has been fixed for XTPListBox</div><div><br></div><div><div>Regards,</div><div>Artem Gontarenko</div><br></div>]]>
   </description>
   <pubDate>Tue, 07 Oct 2025 09:08:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24581&amp;PID=79295&amp;title=cxtplistbox-item-paint-issue#79295</guid>
  </item> 
  <item>
   <title><![CDATA[Controls : CXTPListBox Item Paint Issue]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24581&amp;PID=79294&amp;title=cxtplistbox-item-paint-issue#79294</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> CXTPListBox Item Paint Issue<br /><strong>Posted:</strong> 07 October 2025 at 9:08am<br /><br /><img src="uploads/9012/C&#111;ntrols_N6KeMeHTrQ.png" height="608" width="648" border="0" />]]>
   </description>
   <pubDate>Tue, 07 Oct 2025 09:08:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24581&amp;PID=79294&amp;title=cxtplistbox-item-paint-issue#79294</guid>
  </item> 
  <item>
   <title><![CDATA[Controls : CXTPListBox Item Paint Issue]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24581&amp;PID=79231&amp;title=cxtplistbox-item-paint-issue#79231</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> CXTPListBox Item Paint Issue<br /><strong>Posted:</strong> 11 July 2025 at 3:50am<br /><br /><img src="uploads/9012/firefox_zNUBbb8NtV_2025-07-11_03-50-07.png" height="619" width="653" border="0" />]]>
   </description>
   <pubDate>Fri, 11 Jul 2025 03:50:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24581&amp;PID=79231&amp;title=cxtplistbox-item-paint-issue#79231</guid>
  </item> 
  <item>
   <title><![CDATA[Controls : CXTPListBox Item Paint Issue]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24581&amp;PID=79230&amp;title=cxtplistbox-item-paint-issue#79230</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> CXTPListBox Item Paint Issue<br /><strong>Posted:</strong> 11 July 2025 at 3:49am<br /><br /><div>Hello,</div><div><br></div>I've checked CXTPListBox in our sample and any problems with VS2022 dark theme has not found. All works as expected.&nbsp;<br>Maybe you mean CXTPListCtrl? If yes, we already work with themes for CXTPListCtrl control.<div><br></div><div><img src="" border="0" /></div><div>Regards,</div><div>Artem Gontarenko</div>]]>
   </description>
   <pubDate>Fri, 11 Jul 2025 03:49:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24581&amp;PID=79230&amp;title=cxtplistbox-item-paint-issue#79230</guid>
  </item> 
  <item>
   <title><![CDATA[Controls : CXTPListBox Item Paint Issue]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24581&amp;PID=79221&amp;title=cxtplistbox-item-paint-issue#79221</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9261">sekemp</a><br /><strong>Subject:</strong> CXTPListBox Item Paint Issue<br /><strong>Posted:</strong> 23 June 2025 at 10:57am<br /><br />The&nbsp;CXTPListBox does not paint the items using the selected themes. I've got the Visual Studio 2022 dark theme set and the CXTPListBox background does paint with the dark theme but all of the text list items paint with black text on a white background.]]>
   </description>
   <pubDate>Mon, 23 Jun 2025 10:57:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24581&amp;PID=79221&amp;title=cxtplistbox-item-paint-issue#79221</guid>
  </item> 
  <item>
   <title><![CDATA[Controls : CXTPTabManagerNavigateButton - Close not working]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24579&amp;PID=79220&amp;title=cxtptabmanagernavigatebutton-close-not-working#79220</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3213">rdhd</a><br /><strong>Subject:</strong> CXTPTabManagerNavigateButton - Close not working<br /><strong>Posted:</strong> 19 June 2025 at 4:16pm<br /><br /><div>Hi Artem,</div><div><br></div><div>I'll wait and see how much this affects everyday users. In my case a specific workflow involving a window was the complaint. When the window was closed, I added a call to activate the frame. If someone starts complaining that going to another app and then clicking close is a problem, I'll file the ticket if I am asked to address that workflow too.</div><div><br></div><div>So until that happens, I'll just sit pat and await our next move to a version with the fix.</div>]]>
   </description>
   <pubDate>Thu, 19 Jun 2025 16:16:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24579&amp;PID=79220&amp;title=cxtptabmanagernavigatebutton-close-not-working#79220</guid>
  </item> 
  <item>
   <title><![CDATA[Controls : CXTPTabManagerNavigateButton - Close not working]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24579&amp;PID=79219&amp;title=cxtptabmanagernavigatebutton-close-not-working#79219</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> CXTPTabManagerNavigateButton - Close not working<br /><strong>Posted:</strong> 19 June 2025 at 1:45pm<br /><br /><div>Hello,</div><div><br></div><div><span>Can you send request to support@codejock.com</span></div><div><span>And add this forum ticket</span></div><div><span><br></span></div><div>Regards,<br>Artem Gontarenko</div>]]>
   </description>
   <pubDate>Thu, 19 Jun 2025 13:45:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24579&amp;PID=79219&amp;title=cxtptabmanagernavigatebutton-close-not-working#79219</guid>
  </item> 
 </channel>
</rss>