<?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 theme in menu from Designer</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to change theme in menu from Designer]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 13:23:53 +0000</pubDate>
  <lastBuildDate>Thu, 20 Jan 2005 07:30:55 +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=931</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 theme in menu from Designer : That fixed it! I was already doing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=4789&amp;title=how-to-change-theme-in-menu-from-designer#4789</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=775">Maye Johnson</a><br /><strong>Subject:</strong> 931<br /><strong>Posted:</strong> 20 January 2005 at 7:30am<br /><br />That fixed it!&nbsp; I was already doing that, but in OnCreate(), so Imoved that code to my routine that sets the paint theme.&nbsp; Soobvious to me now ... thanks for the awesome and fast help!]]>
   </description>
   <pubDate>Thu, 20 Jan 2005 07:30:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=4789&amp;title=how-to-change-theme-in-menu-from-designer#4789</guid>
  </item> 
  <item>
   <title><![CDATA[How to change theme in menu from Designer : GetCommandBars()-&amp;gt;GetPaintM...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=4779&amp;title=how-to-change-theme-in-menu-from-designer#4779</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 931<br /><strong>Posted:</strong> 20 January 2005 at 1:15am<br /><br /> GetCommandBars()-&gt;GetPaintManager()-&gt;GetIconsInfo()-&g t;bUseDisabledIcons = TRUE;]]>
   </description>
   <pubDate>Thu, 20 Jan 2005 01:15:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=4779&amp;title=how-to-change-theme-in-menu-from-designer#4779</guid>
  </item> 
  <item>
   <title><![CDATA[How to change theme in menu from Designer : I&amp;#039;m using v9.51, Windows...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=4774&amp;title=how-to-change-theme-in-menu-from-designer#4774</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=775">Maye Johnson</a><br /><strong>Subject:</strong> 931<br /><strong>Posted:</strong> 19 January 2005 at 12:37pm<br /><br />I'm using v9.51, Windows XP, and Visual Studio v6.0.]]>
   </description>
   <pubDate>Wed, 19 Jan 2005 12:37:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=4774&amp;title=how-to-change-theme-in-menu-from-designer#4774</guid>
  </item> 
  <item>
   <title><![CDATA[How to change theme in menu from Designer : I just came across the same problem....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=4768&amp;title=how-to-change-theme-in-menu-from-designer#4768</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=775">Maye Johnson</a><br /><strong>Subject:</strong> 931<br /><strong>Posted:</strong> 19 January 2005 at 3:01am<br /><br />I just came across the same problem.&nbsp; Did you find a solution?<br><br><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by rberlin" alt="Originally posted by rberlin" style="vertical-align: text-bottom;" /> <strong>rberlin wrote:</strong><br /><br /><p>I tried this and it seems to work except for thedisabled icons.&nbsp; The quality of the disabled icons gets reallybad.&nbsp; Is this happening in your code.&nbsp; If you add thiscommand to the designer example, you will see what I mean.</p><p>I tried setting use "Disable Icons" and it did not seem tohelp.&nbsp; Not sure what this actually does (I believe it may use theicons from the designer versus on the fly).&nbsp; </p><p>Do you have a solution to make them look better or use the disabled icons from the designer after setting a new theme?</p><p>&nbsp;</td></tr></table></p>]]>
   </description>
   <pubDate>Wed, 19 Jan 2005 03:01:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=4768&amp;title=how-to-change-theme-in-menu-from-designer#4768</guid>
  </item> 
  <item>
   <title><![CDATA[How to change theme in menu from Designer : Sorry for late answer! Been on...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=2578&amp;title=how-to-change-theme-in-menu-from-designer#2578</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=101">rvoith</a><br /><strong>Subject:</strong> 931<br /><strong>Posted:</strong> 26 July 2004 at 1:41am<br /><br />Sorry for late answer! Been on a summer holiday! Yep, I noticed the same!]]>
   </description>
   <pubDate>Mon, 26 Jul 2004 01:41:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=2578&amp;title=how-to-change-theme-in-menu-from-designer#2578</guid>
  </item> 
  <item>
   <title><![CDATA[How to change theme in menu from Designer : I tried this and it seems to work...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=2517&amp;title=how-to-change-theme-in-menu-from-designer#2517</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=635">rberlin</a><br /><strong>Subject:</strong> 931<br /><strong>Posted:</strong> 18 July 2004 at 5:33pm<br /><br /><P>I tried this and it seems to work except for the disabled icons.&nbsp; The quality of the disabled icons gets really bad.&nbsp; Is this happening in your code.&nbsp; If you add this command to the designer example, you will see what I mean.</P><P>I tried setting use "Disable Icons" and it did not seem to help.&nbsp; Not sure what this actually does (I believe it may use the icons from the designer versus on the fly).&nbsp; </P><P>Do you have a solution to make them look better or use the disabled icons from the designer after setting a new theme?</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sun, 18 Jul 2004 17:33:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=2517&amp;title=how-to-change-theme-in-menu-from-designer#2517</guid>
  </item> 
  <item>
   <title><![CDATA[How to change theme in menu from Designer : I received an answer from Oleg...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=2484&amp;title=how-to-change-theme-in-menu-from-designer#2484</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=101">rvoith</a><br /><strong>Subject:</strong> 931<br /><strong>Posted:</strong> 15 July 2004 at 1:37am<br /><br /><P>I received an answer from Oleg C.:</P><FONT face=Tahoma size=2><P> GetCommandBars()-&gt;SetPaintManager(CXTPPaintManager::Creat eTheme(xtpThemeOffice2000));</P></FONT>]]>
   </description>
   <pubDate>Thu, 15 Jul 2004 01:37:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=2484&amp;title=how-to-change-theme-in-menu-from-designer#2484</guid>
  </item> 
  <item>
   <title><![CDATA[How to change theme in menu from Designer :  I am struggeling with theme-switching...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=2467&amp;title=how-to-change-theme-in-menu-from-designer#2467</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=101">rvoith</a><br /><strong>Subject:</strong> 931<br /><strong>Posted:</strong> 13 July 2004 at 2:30am<br /><br /><FONT face=Helv size=2><P>I am struggeling with theme-switching in command bars loaded from Designer created XCB files. I know I can set the theme with&nbsp;Command Bar Designer&nbsp;in Command Bars - &gt; Settings -&gt; Paint Manager. This works and change the theme. However, I would also be able to switch the theme at runtime, much like other samples in the toolkit. Unfortunately I can't get my test app. to repaint the command bar .</P><P>Let say I set the initial theme to Office2003 (xtpThemeOffice2000) in XCB file, and recompile. The app. start up with the correct theme. In my test app. I have added a menu handler method for one of the default themes, such as;</P></FONT><FONT face=Courier color=#0000ff size=2><P>void</FONT><FONT face=Courier size=2> </FONT><FONT face=Courier color=#0000ff size=2>CMainFrame</FONT><FONT face=Courier size=2>::</FONT><FONT face=Courier color=#800000 size=2>OnThemeDefault</FONT><FONT face=Courier size=2>() </P><P>{</P><P></FONT><FONT face=Courier color=#808080 size=2>m_paneManager</FONT><FONT face=Courier size=2>.</FONT><FONT face=Courier color=#800000 size=2>SetTheme</FONT><FONT face=Courier size=2>(</FONT><FONT face=Courier color=#a1009f size=2>xtpPaneThemeDefault</FONT><FONT face=Courier size=2>);</P><P></FONT><FONT face=Courier color=#0000ff size=2>CXTPPaintManager</FONT><FONT face=Courier size=2>::</FONT><FONT face=Courier color=#800000 size=2>SetTheme</FONT><FONT face=Courier size=2>(</FONT><FONT face=Courier color=#a1009f size=2>xtpThemeOffice2000</FONT><FONT face=Courier size=2>);</P><P>//  GetCommandBars()-&gt;GetPaintManager()-&gt;SetTheme(xtpTheme Office2000);</P><P></FONT><FONT face=Courier color=#800000 size=2>RecalcLayout</FONT><FONT face=Courier size=2>(</FONT><FONT face=Courier color=#a1009f size=2>FALSE</FONT><FONT face=Courier size=2>);</P><P></FONT><FONT face=Courier color=#800000 size=2>GetCommandBars</FONT><FONT face=Courier size=2>()-&gt;</FONT><FONT face=Courier color=#800000 size=2>RedrawCommandBars</FONT><FONT face=Courier size=2>();</P><P></FONT><FONT face=Courier color=#800000 size=2>RedrawWindow</FONT><FONT face=Courier size=2>();</P><P></P><P>}</P></FONT><FONT face=Helv size=2><P>As you see I have tested a few approaches. None of them repaint the command bar properly. I suspect I have to connect the default paint manager to the command bar, but haven't succeeded. Any ideas ?</P></FONT>]]>
   </description>
   <pubDate>Tue, 13 Jul 2004 02:30:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=931&amp;PID=2467&amp;title=how-to-change-theme-in-menu-from-designer#2467</guid>
  </item> 
 </channel>
</rss>