<?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 : Problems goig from CXTButton to CXTPButton</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : Problems goig from CXTButton to CXTPButton]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 13:02:27 +0000</pubDate>
  <lastBuildDate>Sat, 20 Jan 2018 07:17:30 +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=23544</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[Problems goig from CXTButton to CXTPButton : Hii think you should try:btn.SetBitmap(size/3,uID);...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23544&amp;PID=76494&amp;title=problems-goig-from-cxtbutton-to-cxtpbutton#76494</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8817">cluster</a><br /><strong>Subject:</strong> 23544<br /><strong>Posted:</strong> 20 January 2018 at 7:17am<br /><br />Hi<br><br>i think you should try:<br><pre style="font-size: 13px; -: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"><pre style="font-family: C&#111;nsolas; -: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;">btn.SetBitmap(size<b>/3</b>,&nbsp;<span style="color:gray;">uID</span>);</pre></pre>]]>
   </description>
   <pubDate>Sat, 20 Jan 2018 07:17:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23544&amp;PID=76494&amp;title=problems-goig-from-cxtbutton-to-cxtpbutton#76494</guid>
  </item> 
  <item>
   <title><![CDATA[Problems goig from CXTButton to CXTPButton : We recently upgraded to version...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23544&amp;PID=76491&amp;title=problems-goig-from-cxtbutton-to-cxtpbutton#76491</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1834">eggbox</a><br /><strong>Subject:</strong> 23544<br /><strong>Posted:</strong> 19 January 2018 at 12:38pm<br /><br />We recently upgraded to version 18.2 from 17.2 and we are looking at code that uses <b>CXTButton </b>and would like to upgrade to <b>CXTPButton </b>since the former is deprecated.<div><br></div><div>The code in question creates a button and as a flat button style with an image, with no code changes the button does not show the image at all.</div><div><br></div><div>Some code (rcButtonPos and pParent are set correctly)</div><div><br></div><div><pre style="font-size: 13px; -: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"><font color="#808080" style="font-family: C&#111;nsolas;">-----CXTPButton btn;</font><font face="C&#111;nsolas">btn.Create(</font><span style="font-family: C&#111;nsolas; color: rgb111, 0, 138;">_T</span><font face="C&#111;nsolas">(</font><span style="font-family: C&#111;nsolas; color: rgb163, 21, 21;">""</span><font face="C&#111;nsolas">),&nbsp;</font><span style="font-family: C&#111;nsolas; color: rgb111, 0, 138;">WS_CHILD</span><font face="C&#111;nsolas">|</font><span style="font-family: C&#111;nsolas; color: rgb111, 0, 138;">BS_NOTIFY</span><font face="C&#111;nsolas">|</font><span style="font-family: C&#111;nsolas; color: rgb111, 0, 138;">WS_VISIBLE</span><font face="C&#111;nsolas">|</font><span style="font-family: C&#111;nsolas; color: rgb111, 0, 138;">WS_TABSTOP</span><font face="C&#111;nsolas">,&nbsp;rcButtonPos,&nbsp;pParent,&nbsp;100);btn.SetButtonStyle(BS_XT_SEMIFLAT|BS_XT_SHOWFOCUS&nbsp;);</font><pre style="font-family: C&#111;nsolas; -: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"><span style="color:#2b91af;">CBitmap</span>&nbsp;bitmap; bitmap.<span style="color:#6f008a;">LoadBitmap</span>(<span style="color:gray;">uID</span>);  // Load image from resources<span style="color:#2b91af;">CSize</span>&nbsp;size&nbsp;=&nbsp;bitmap.GetBitmapDimension(); btn.SetBitmap(size,&nbsp;<span style="color:gray;">uID</span>);-----</pre><pre style="-: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"><font face="Arial, Helvetica, sans-serif">It seems like I am doing everything correctly but all get is the default button images, e.g.</font></pre><pre style="-: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"><font face="Arial, Helvetica, sans-serif"><img src="uploads/1834/CXTPButt&#111;ns_wr&#111;ng.png" height="25" width="76" border="0" align="left" /><br></font></pre><pre style="-: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"><font face="Arial, Helvetica, sans-serif"><br></font></pre><pre style="-: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"><font face="Arial, Helvetica, sans-serif">Does anyone have an idea of what I am doing wrong?</font></pre><pre style="-: initial; -: initial; -size: initial; -repeat: initial; -attachment: initial; -origin: initial; -clip: initial;"><font face="Arial, Helvetica, sans-serif">Thanks in advance.</font></pre></pre></div>]]>
   </description>
   <pubDate>Fri, 19 Jan 2018 12:38:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23544&amp;PID=76491&amp;title=problems-goig-from-cxtbutton-to-cxtpbutton#76491</guid>
  </item> 
 </channel>
</rss>