<?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 : CXTButt&#111;n, more than &#111;ne style/theme?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTButt&#111;n, more than &#111;ne style/theme?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 17:29:34 +0000</pubDate>
  <lastBuildDate>Thu, 23 Feb 2006 08:21:05 +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=3604</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[CXTButt&#111;n, more than &#111;ne style/theme? :    I&amp;#039;m not sure your solution...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11132&amp;title=cxtbutton-more-than-one-style-theme#11132</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1758">Dimitris</a><br /><strong>Subject:</strong> 3604<br /><strong>Posted:</strong> 23 February 2006 at 8:21am<br /><br />I'm not sure your solution would work Barto, but I think you're right about the way to do it.<br><br>I would subclass the CXTButton class rather than CXTButtonTheme and create two seperate classes to use two different themes.<br>]]>
   </description>
   <pubDate>Thu, 23 Feb 2006 08:21:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11132&amp;title=cxtbutton-more-than-one-style-theme#11132</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButt&#111;n, more than &#111;ne style/theme? : class CMyButtonTheme : public...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11131&amp;title=cxtbutton-more-than-one-style-theme#11131</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1011">Barto</a><br /><strong>Subject:</strong> 3604<br /><strong>Posted:</strong> 23 February 2006 at 8:16am<br /><br /><P>class CMyButtonTheme : public CXTButtonTheme<BR>{<BR>protected:<BR>&nbsp;virtual void DrawButtonText(CDC* pDC, UINT nState, CRect&amp; rcItem, CXTButton* pButton);</P><P>&nbsp;friend class CXTButton;<BR>};<BR></P><P>m_wButton.SetTheme(new CMyButtonTheme);</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 23 Feb 2006 08:16:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11131&amp;title=cxtbutton-more-than-one-style-theme#11131</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButt&#111;n, more than &#111;ne style/theme? : Hello, At least in 9.70 it is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11124&amp;title=cxtbutton-more-than-one-style-theme#11124</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3604<br /><strong>Posted:</strong> 23 February 2006 at 7:46am<br /><br /><P>Hello,</P><P>At least in 9.70 it is possible to set theme for individual buttons.</P>]]>
   </description>
   <pubDate>Thu, 23 Feb 2006 07:46:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11124&amp;title=cxtbutton-more-than-one-style-theme#11124</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButt&#111;n, more than &#111;ne style/theme? :   Dimitris wrote:So, there is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11119&amp;title=cxtbutton-more-than-one-style-theme#11119</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1801">rmercer</a><br /><strong>Subject:</strong> 3604<br /><strong>Posted:</strong> 22 February 2006 at 3:40pm<br /><br /><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Dimitris" alt="Originally posted by Dimitris" style="vertical-align: text-bottom;" /> <strong>Dimitris wrote:</strong><br /><br />So, there is no solution for 9.5.1 other than upgrade?</td></tr></table></P><P>I'm using 9.81 and have the same problem.&nbsp; If you look at their code you'll understand why it's doing this.&nbsp; When you set&nbsp;the colors it's actually setting them in the theme, and the theme handles painting the button.&nbsp; The end result is if you modify one button it will effect all CXTButtons the next time they repaint.</P><P>It&nbsp;would be great if you could set the button theme and colors on a per-button basis.</P>]]>
   </description>
   <pubDate>Wed, 22 Feb 2006 15:40:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11119&amp;title=cxtbutton-more-than-one-style-theme#11119</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButt&#111;n, more than &#111;ne style/theme? : So, there is no solution for 9.5.1...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11040&amp;title=cxtbutton-more-than-one-style-theme#11040</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1758">Dimitris</a><br /><strong>Subject:</strong> 3604<br /><strong>Posted:</strong> 17 February 2006 at 8:11am<br /><br />So, there is no solution for 9.5.1 other than upgrade?]]>
   </description>
   <pubDate>Fri, 17 Feb 2006 08:11:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11040&amp;title=cxtbutton-more-than-one-style-theme#11040</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButt&#111;n, more than &#111;ne style/theme? : Hi, 9.5.1 is quite old version,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11039&amp;title=cxtbutton-more-than-one-style-theme#11039</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3604<br /><strong>Posted:</strong> 17 February 2006 at 8:10am<br /><br /><P>Hi,</P><P>9.5.1 is quite old version, it used another way to&nbsp;theme buttons...</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Fri, 17 Feb 2006 08:10:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11039&amp;title=cxtbutton-more-than-one-style-theme#11039</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButt&#111;n, more than &#111;ne style/theme? : Nobody&amp;#039;s seen this before?Anybody?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11021&amp;title=cxtbutton-more-than-one-style-theme#11021</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1758">Dimitris</a><br /><strong>Subject:</strong> 3604<br /><strong>Posted:</strong> 16 February 2006 at 9:28am<br /><br />Nobody's seen this before?<br><br>Anybody? <img src="http://forum.codejock.com/smileys/smiley5.gif" border="0"><br>]]>
   </description>
   <pubDate>Thu, 16 Feb 2006 09:28:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=11021&amp;title=cxtbutton-more-than-one-style-theme#11021</guid>
  </item> 
  <item>
   <title><![CDATA[CXTButt&#111;n, more than &#111;ne style/theme? : Hello,I am using the CXTButton...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=10825&amp;title=cxtbutton-more-than-one-style-theme#10825</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1758">Dimitris</a><br /><strong>Subject:</strong> 3604<br /><strong>Posted:</strong> 06 February 2006 at 3:00am<br /><br />Hello,<br><br>I am using the <span style="font-family: Courier New,Courier,mono;">CXTButton</span> class for some of the buttons in my app, because I want to have the flat look. Some of these buttons appear in a dialog, and some of them appear in a <span style="font-family: Courier New,Courier,mono;">CFormView</span> derived class, <span style="text-decorati&#111;n: underline; font-weight: bold;">with different background colors.</span> All these buttons have just an icon with transparency on them. I use the <span style="font-family: Courier New,Courier,mono;">SetAlternateColors()<span style="font-family: Verdana,Arial,Helvetica,sans-serif;"> function to set the correct colors for the buttons.<br><br></span></span>The problem is, that when the formview appears at the same time as the dialog, the background color of the buttons gets messed up (either in the dialog or the view), and after that they remain messed up.<br><br>It seems as if when I call <span style="font-family: Courier New,Courier,mono;">SetAlternateColors() </span>the colors affect the theme (which is shared by all CXTButtons), and not the specific buttons.<br><br>I tried initializing and using different themes, but I keep getting memory errors when the app closes.<br><br>Any ideas?<br><br>We are using version 9.5.1<br>]]>
   </description>
   <pubDate>Mon, 06 Feb 2006 03:00:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3604&amp;PID=10825&amp;title=cxtbutton-more-than-one-style-theme#10825</guid>
  </item> 
 </channel>
</rss>