<?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 : CXTPControlPopupColor overloaded member problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPControlPopupColor overloaded member problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 14:33:10 +0000</pubDate>
  <lastBuildDate>Thu, 27 Sep 2007 07:59:25 +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=8183</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[CXTPControlPopupColor overloaded member problem : Basically rather than the thin...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8183&amp;PID=26514&amp;title=cxtpcontrolpopupcolor-overloaded-member-problem#26514</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2928">terrym</a><br /><strong>Subject:</strong> 8183<br /><strong>Posted:</strong> 27 September 2007 at 7:59am<br /><br />Basically rather than the thin coloured line that shows, I want to draw a square coloured image based on the selected colour]]>
   </description>
   <pubDate>Thu, 27 Sep 2007 07:59:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8183&amp;PID=26514&amp;title=cxtpcontrolpopupcolor-overloaded-member-problem#26514</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlPopupColor overloaded member problem :  We have the following code for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8183&amp;PID=26513&amp;title=cxtpcontrolpopupcolor-overloaded-member-problem#26513</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2928">terrym</a><br /><strong>Subject:</strong> 8183<br /><strong>Posted:</strong> 27 September 2007 at 7:46am<br /><br /><FONT color=#0000ff size=2><DIV>We have the following code for our draw:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>void</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>CMyXTPControlPopupColor</FONT><FONT size=2>::</FONT><FONT color=#010001 size=2>Draw</FONT><FONT size=2>( </FONT><FONT color=#010001 size=2>CDC</FONT><FONT size=2> *</FONT><FONT color=#010001 size=2>pDC</FONT><FONT size=2> )</DIV><P>{</P><P></FONT><FONT color=#010001 size=2>CXTPPaintManager</FONT><FONT size=2>* </FONT><FONT color=#010001 size=2>pPaintManager</FONT><FONT size=2> = </FONT><FONT color=#010001 size=2>GetPaintManager</FONT><FONT size=2>();</P><P></FONT><FONT color=#010001 size=2>CXTPFontDC</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>font</FONT><FONT size=2> (</FONT><FONT color=#010001 size=2>pDC</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>pPaintManager</FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2>GetRegularFont</FONT><FONT size=2>());</P><P></FONT><FONT color=#010001 size=2>pPaintManager</FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2>DrawControlEntry</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>pDC</FONT><FONT size=2>, </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>);</P><P></FONT><FONT color=#010001 size=2>pDC</FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2>SetTextColor</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>pPaintManager</FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2>GetControlTextColor</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>));</P><P></FONT><FONT color=#010001 size=2>CRect</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>rcText</FONT><FONT size=2> = </FONT><FONT color=#010001 size=2>GetRect</FONT><FONT size=2>();</P><P></FONT><FONT color=#010001 size=2>pPaintManager</FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2>DrawControlText</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>pDC</FONT><FONT size=2>, </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>, &amp;</FONT><FONT color=#010001 size=2>rcText</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>TRUE</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>FALSE</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>TRUE</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>FALSE</FONT><FONT size=2>);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> ( </FONT><FONT color=#010001 size=2>GetColor</FONT><FONT size=2>() != </FONT><FONT color=#010001 size=2>COLORREF_NULL</FONT><FONT size=2>)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>#define</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>XTP_SELECTOR_SIZE</FONT><FONT size=2> 18</P><P></FONT><FONT color=#010001 size=2>CRect</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>rcButton</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>CPoint</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>m_rcControl</FONT><FONT size=2>.</FONT><FONT color=#010001 size=2>left</FONT><FONT size=2> + 2, </FONT><FONT color=#010001 size=2>m_rcControl</FONT><FONT size=2>.</FONT><FONT color=#010001 size=2>CenterPoint</FONT><FONT size=2>().</FONT><FONT color=#010001 size=2>y</FONT><FONT size=2> - </FONT><FONT color=#010001 size=2>XTP_SELECTOR_SIZE</FONT><FONT size=2> / 2), </FONT><FONT color=#010001 size=2>CSize</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>XTP_SELECTOR_SIZE</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>XTP_SELECTOR_SIZE</FONT><FONT size=2>));</P><P></FONT><FONT color=#010001 size=2>rcButton</FONT><FONT size=2>.</FONT><FONT color=#010001 size=2>DeflateRect</FONT><FONT size=2>(3, 3);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (</FONT><FONT color=#010001 size=2>GetEnabled</FONT><FONT size=2>())</P><P></FONT><FONT color=#010001 size=2>pDC</FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2>FillSolidRect</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>rcButton</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>GetColor</FONT><FONT size=2>());</P><P></FONT><FONT color=#010001 size=2>pDC</FONT><FONT size=2>-&gt;</FONT><FONT color=#010001 size=2>Draw3dRect</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>rcButton</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>GetXtremeColor</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>COLOR_3DSHADOW</FONT><FONT size=2>), </FONT><FONT color=#010001 size=2>GetXtremeColor</FONT><FONT size=2>(</FONT><FONT color=#010001 size=2>COLOR_3DSHADOW</FONT><FONT size=2>));</P><P>}</P><P>}</P></FONT>]]>
   </description>
   <pubDate>Thu, 27 Sep 2007 07:46:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8183&amp;PID=26513&amp;title=cxtpcontrolpopupcolor-overloaded-member-problem#26513</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlPopupColor overloaded member problem : Hi, Show code you have. ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8183&amp;PID=26494&amp;title=cxtpcontrolpopupcolor-overloaded-member-problem#26494</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8183<br /><strong>Posted:</strong> 27 September 2007 at 1:10am<br /><br />Hi,<DIV>Show code you have.</DIV>]]>
   </description>
   <pubDate>Thu, 27 Sep 2007 01:10:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8183&amp;PID=26494&amp;title=cxtpcontrolpopupcolor-overloaded-member-problem#26494</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPControlPopupColor overloaded member problem : I have overloaded the Draw method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8183&amp;PID=26492&amp;title=cxtpcontrolpopupcolor-overloaded-member-problem#26492</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2928">terrym</a><br /><strong>Subject:</strong> 8183<br /><strong>Posted:</strong> 26 September 2007 at 9:19pm<br /><br /><P>I have overloaded the Draw method for CXTPControlPopupColor however it seems to draw strange, I copied the code from the actual XTP library for Draw (so same code), except change m_clr (as it is private) to GetColor()</P><DIV>Any ideas why this is drawing strange, below it is drawn wrong (see color group)</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/20070926_211759_bug.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>and below is drawn correct (see color group)</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/20070926_211856_fine.jpg" border="0"></DIV>]]>
   </description>
   <pubDate>Wed, 26 Sep 2007 21:19:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8183&amp;PID=26492&amp;title=cxtpcontrolpopupcolor-overloaded-member-problem#26492</guid>
  </item> 
 </channel>
</rss>