<?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 : How to change a skin attribute at runtime</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : How to change a skin attribute at runtime]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 25 May 2026 12:20:22 +0000</pubDate>
  <lastBuildDate>Wed, 23 Nov 2016 13:09:56 +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=19602</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[How to change a skin attribute at runtime : Combobox border color. Create...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19602&amp;PID=75372&amp;title=how-to-change-a-skin-attribute-at-runtime#75372</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 19602<br /><strong>Posted:</strong> 23 November 2016 at 1:09pm<br /><br /><br>Combobox border color. Create a brush, then get XTPComboboxTheme to DrawBackground or DrawFrame. <br><br>DrawFrame(pDC-&gt;GetSafeHdc(), rc, 3, hBrush);<br><br>*See XTPComboBoxTheme.cpp<br><br>Tab control.<br><br>m_wndTabControl.GetPaintManager()-&gt;SetColor(xtpTabColorVisualStudio2010);<br><br>* See sample: GUI_OneNote<br><br>Bitmap background. I don't know of a CJ method for this. There may be one but this is what I use. It really depends on the background but this puts a bitmap on a designated client rect .. stretched to fit. Change the Blt to desired style.<br><br>// header<br>CBitmap m_bmp;<br><br>// init somewhere<br>m_bmp.LoadBitmap(IDB_MYBITMAP); // bitmap resource<br><br>// cpp<br>CPaintDC dc(this);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // device context for painting<br><br>CRect rClient;<br><br>&nbsp;// where idc_bitmap_rect is your background area<br>CWnd *pWnd = (CWnd*)GetDlgItem(IDC_BITMAP_RECT);<br><br>pWnd-&gt;GetWindowRect(&amp;rClient);<br>ScreenToClient(&amp;rClient);<br><br>CDC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MemDC;<br>BITMAP&nbsp;&nbsp; bit;<br><br>m_bmp.GetBitmap(&amp;bit);<br>MemDC.CreateCompatibleDC(&amp;dc);<br>MemDC.SelectObject(m_bmp); <br><br>dc.StretchBlt(rClient.left, rClient.top, rClient.Width(), rClient.Height(), <br>&nbsp;&nbsp;&nbsp;&nbsp; &amp;MemDC, 0, 0, bit.bmWidth, bit.bmHeight, SRCCOPY);<br><br>DeleteObject(MemDC);<br><br>This is probably not as complete as you might like, but should point you in the right direction. Hope it helps out.<br><br>]]>
   </description>
   <pubDate>Wed, 23 Nov 2016 13:09:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19602&amp;PID=75372&amp;title=how-to-change-a-skin-attribute-at-runtime#75372</guid>
  </item> 
  <item>
   <title><![CDATA[How to change a skin attribute at runtime : Hello Algae,We just need to do...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19602&amp;PID=75370&amp;title=how-to-change-a-skin-attribute-at-runtime#75370</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 19602<br /><strong>Posted:</strong> 23 November 2016 at 9:00am<br /><br />Hello Algae,<div><br></div><div>We just need to do that when the application starts.</div><div><br></div><div>We want to avoid having to change every time the Office2010.cjstyles on the Skin Builder to merge our changes in a new Codejock Release. This is time consuming and not really easy to do.</div><div><br></div><div>So, we would like to load the factory skin Office2010 and then just update it by source code, and we won't have to make changes in Codejock folder anymore.</div><div><br></div><div>Could you please give us (just the line of code):</div><div><ul><li>one example to change comboboxes border color</li><li>one example to change tab controls content background color</li><li>one example to change a background bitmap</li></ul></div><div>Thanks in advance,</div>]]>
   </description>
   <pubDate>Wed, 23 Nov 2016 09:00:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19602&amp;PID=75370&amp;title=how-to-change-a-skin-attribute-at-runtime#75370</guid>
  </item> 
  <item>
   <title><![CDATA[How to change a skin attribute at runtime : Hello Sergio,I&amp;#039;m not sure...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19602&amp;PID=73674&amp;title=how-to-change-a-skin-attribute-at-runtime#73674</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 19602<br /><strong>Posted:</strong> 21 July 2015 at 4:16pm<br /><br />Hello Sergio,<br><br>I'm not sure if this will help you since I am somewhat unclear about your request and I do not have your version readily available. <br><br>At any rate, setting this permits skin colors to be applied:<br><br>XTPSkinManager()-&gt;SetApplyOptions(dwApplyOptions | xtpSkinApplyColors);<br><br>Also some "theme" types require setting the Luna for colors as well. See:<br><br>SetLunaTheme(XTPCurrentSystemTheme systemTheme)<br><br>Most of the skin features are illustrated within SkinMDISample. As far as I know, skins and colors can be dynamically changed readily but require lots of screen element redrawing. This could become a performance issue if you did it a lot.<br>]]>
   </description>
   <pubDate>Tue, 21 Jul 2015 16:16:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19602&amp;PID=73674&amp;title=how-to-change-a-skin-attribute-at-runtime#73674</guid>
  </item> 
  <item>
   <title><![CDATA[How to change a skin attribute at runtime : Hello,We now really need this...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19602&amp;PID=73608&amp;title=how-to-change-a-skin-attribute-at-runtime#73608</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 19602<br /><strong>Posted:</strong> 03 July 2015 at 5:09am<br /><br />Hello,<div><br></div><div>We now really need this feature. Could you please answer?</div><div><br></div><div>We want to modify skin attributes at runtime upon specific criterions, and we always want to use your skin project files without having to update them for each release.</div><div><br></div><div>Thanks in advance.</div>]]>
   </description>
   <pubDate>Fri, 03 Jul 2015 05:09:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19602&amp;PID=73608&amp;title=how-to-change-a-skin-attribute-at-runtime#73608</guid>
  </item> 
  <item>
   <title><![CDATA[How to change a skin attribute at runtime : Please help ! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19602&amp;PID=67876&amp;title=how-to-change-a-skin-attribute-at-runtime#67876</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 19602<br /><strong>Posted:</strong> 28 March 2012 at 6:06am<br /><br />Please help !]]>
   </description>
   <pubDate>Wed, 28 Mar 2012 06:06:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19602&amp;PID=67876&amp;title=how-to-change-a-skin-attribute-at-runtime#67876</guid>
  </item> 
  <item>
   <title><![CDATA[How to change a skin attribute at runtime :  Hello,I would like to know how...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19602&amp;PID=67854&amp;title=how-to-change-a-skin-attribute-at-runtime#67854</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2347">Sergio</a><br /><strong>Subject:</strong> 19602<br /><strong>Posted:</strong> 26 March 2012 at 5:27am<br /><br />Hello,<div><br></div><div>I would like to know how can I change the attribute (dialog background color) of a skin after having loaded it. I'm currently using Codejock version 15.2.1.</div><div><br></div><div><br></div><div>I have tried :</div><div><br></div><div><div>XTPSkinManager()-&gt;GetSchema()-&gt;GetMetrics()-&gt;m_clrTheme&#091;COLOR_BTNFACE + TMT_FIRSTCOLOR&#093; = RGB(255,0,0);</div></div><div><br></div><div>or</div><div><br></div><div><div>XTPSkinManager()-&gt;GetSchema()-&gt;CreateProperty(_T("BtnFace"), XTP_SKINPROPERTY_COLOR, _T("230;230;230"));</div></div><div><br></div><div>or</div><div><br></div><div>XTPSkinManager()-&gt;GetSchema()-&gt;GetProperty(?) // ----&gt; This method isn't public.</div><div><br></div><div>or</div><div><br></div><div><div>XTPColorManager()-&gt;SetColor(COLOR_BTNFACE, RGB(255,0,0));</div></div><div>XTPColorManager()-&gt;RefreshColors();</div><div><br></div><div><br></div><div>Please help, thanks.</div><div><br></div><div>Regards,</div>]]>
   </description>
   <pubDate>Mon, 26 Mar 2012 05:27:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19602&amp;PID=67854&amp;title=how-to-change-a-skin-attribute-at-runtime#67854</guid>
  </item> 
 </channel>
</rss>