<?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 : CXTButton SetColorFace</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTButton SetColorFace]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 23:11:26 +0000</pubDate>
  <lastBuildDate>Mon, 10 Mar 2008 15:44:09 +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=9833</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[CXTButton SetColorFace : Hi Thanks for that. It has pointed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9833&amp;PID=32103&amp;title=cxtbutton-setcolorface#32103</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3827">DoubleHammer</a><br /><strong>Subject:</strong> 9833<br /><strong>Posted:</strong> 10 March 2008 at 3:44pm<br /><br /><P>Hi</P><DIV>Thanks for that. It has pointed me in the right direction.</DIV>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 15:44:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9833&amp;PID=32103&amp;title=cxtbutton-setcolorface#32103</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButton SetColorFace :   DoubleHammer wrote:Hi,   I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9833&amp;PID=32088&amp;title=cxtbutton-setcolorface#32088</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1801">rmercer</a><br /><strong>Subject:</strong> 9833<br /><strong>Posted:</strong> 10 March 2008 at 10:33am<br /><br /><P align=left><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by DoubleHammer" alt="Originally posted by DoubleHammer" style="vertical-align: text-bottom;" /> <strong>DoubleHammer wrote:</strong><br /><br />Hi, </P><DIV>&nbsp;</DIV><DIV>I have a CFormView view with a couple of buttons on it which are subclassed as CXTButton types. I want to be able to set their face colors to different colors when the form is initialy updated and also during run time. When I set the color, all the buttons assume the same color as the button which had the last SetColorFace function called on it. </DIV><DIV>&nbsp;</DIV><DIV>Can I do what I want to do with the CXTButton type?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance.</DIV></td></tr></table> <DIV>If I recall correctly, the buttons&nbsp;share the application theme unless you've specifically overridden it using SetTheme since the colors are defined in the theme.&nbsp; So to have different face colors you have to actually create and assign a new dedicated theme to each button...&nbsp; ie:</DIV><DIV>&nbsp;</DIV><DIV><P><FONT size=2><FONT face="Courier New, Courier, mono">m_btnContinue.SetTheme(</FONT><FONT face="Courier New, Courier, mono" color=#0000ff>new</FONT><FONT face="Courier New, Courier, mono"> CXTButtonThemeOffice2003);</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>((CXTButtonThemeOfficeXP*)m_btnContinue.GetTheme())-&gt;UseWordTheme(FALSE);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>m_btnContinue.SetXButtonStyle(BS_XT_SHOWFOCUS);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>m_btnContinue.SetIcon(CSize(32, 32), IDI_YOURICON);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>m_btnContinue.SetColorFace(m_crYourColor);</FONT></P></DIV>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 10:33:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9833&amp;PID=32088&amp;title=cxtbutton-setcolorface#32088</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButton SetColorFace : Hi,  I have a CFormView view...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9833&amp;PID=32057&amp;title=cxtbutton-setcolorface#32057</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3827">DoubleHammer</a><br /><strong>Subject:</strong> 9833<br /><strong>Posted:</strong> 09 March 2008 at 5:29pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I have a CFormView view with a couple of buttons on it which are subclassed as CXTButton types. I want to be able to set their face colors to different colors when the form is initialy updated and also during run time. When I set the color, all the buttons assume the same color as the button which had the last SetColorFace function called on it. </DIV><DIV>&nbsp;</DIV><DIV>Can I do what I want to do with the CXTButton type?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance.</DIV>]]>
   </description>
   <pubDate>Sun, 09 Mar 2008 17:29:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9833&amp;PID=32057&amp;title=cxtbutton-setcolorface#32057</guid>
  </item> 
 </channel>
</rss>