<?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: Ribbon Toolbars from CommandBars Designer</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to: Ribbon Toolbars from CommandBars Designer]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 27 May 2026 15:34:42 +0000</pubDate>
  <lastBuildDate>Wed, 09 Jun 2010 11:28:07 +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=16803</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: Ribbon Toolbars from CommandBars Designer : Hmm, I see a few issues with actions.  1....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16803&amp;PID=58865&amp;title=how-to-ribbon-toolbars-from-commandbars-designer#58865</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6064">lfoster</a><br /><strong>Subject:</strong> 16803<br /><strong>Posted:</strong> 09 June 2010 at 11:28am<br /><br />Hmm, I see a few issues with actions.<br /><br />1. It seems Ribbon groups do not have actions listed in the CommandBars Designer. It may be possible to create an action manually through XML and to give the group the same ID as the action? - Not ideal, but it may work, i will try it.<br /><br />2. I see no way to export actions from CommandBars Designer to an XML format that the Resource Editor can understand. I have tried exporting to XML and to XCB but the CodeJock Resource Editor does not understand either because they contain bitmap information etc.<br /><br />I can see how Actions can allow me to use multiple languages easily. I just can't see how to convert my .xcb file into a number of different language .xml files containing just the actions...<br /><br />Thanks]]>
   </description>
   <pubDate>Wed, 09 Jun 2010 11:28:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16803&amp;PID=58865&amp;title=how-to-ribbon-toolbars-from-commandbars-designer#58865</guid>
  </item> 
  <item>
   <title><![CDATA[How to: Ribbon Toolbars from CommandBars Designer : Excellent I&amp;#039;ll take a look,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16803&amp;PID=58864&amp;title=how-to-ribbon-toolbars-from-commandbars-designer#58864</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6064">lfoster</a><br /><strong>Subject:</strong> 16803<br /><strong>Posted:</strong> 09 June 2010 at 10:37am<br /><br />Excellent I'll take a look, thanks SuperMario.]]>
   </description>
   <pubDate>Wed, 09 Jun 2010 10:37:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16803&amp;PID=58864&amp;title=how-to-ribbon-toolbars-from-commandbars-designer#58864</guid>
  </item> 
  <item>
   <title><![CDATA[How to: Ribbon Toolbars from CommandBars Designer : The language dlls only change...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16803&amp;PID=58861&amp;title=how-to-ribbon-toolbars-from-commandbars-designer#58861</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 16803<br /><strong>Posted:</strong> 09 June 2010 at 9:57am<br /><br />The language dlls only change built-in strings, it won't convert your text like the buttons you add.<br><br>You can use CommandBar Actions:<br><br>http://codejock.com/support/articles/com/commandbars/cb_26.asp<br><br>There is a MFC CommandBars Action sample to show how to use them<br>]]>
   </description>
   <pubDate>Wed, 09 Jun 2010 09:57:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16803&amp;PID=58861&amp;title=how-to-ribbon-toolbars-from-commandbars-designer#58861</guid>
  </item> 
  <item>
   <title><![CDATA[How to: Ribbon Toolbars from CommandBars Designer : We do seem to have a problem with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16803&amp;PID=58858&amp;title=how-to-ribbon-toolbars-from-commandbars-designer#58858</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6064">lfoster</a><br /><strong>Subject:</strong> 16803<br /><strong>Posted:</strong> 09 June 2010 at 6:38am<br /><br />We do seem to have a problem with different languages when using the CommandBars Designer .xcb files.<br /><br />One solution is to translate the .xcb files but they don't appear to be valid xml according to our language processing tools. This also doesn't seem like the best solution. Ideally I'd like to stick with language "satallite" dlls but I'm struggling to see how this can be done as we essentially have no string tables, everything is in the .xcb file.<br /><br />Has anyone got any experience with .xcb files from CommandBars Designer? Any ideas on how you could use language dlls?<br /><br />I'll be sure to post up with any solution that I can work out.]]>
   </description>
   <pubDate>Wed, 09 Jun 2010 06:38:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16803&amp;PID=58858&amp;title=how-to-ribbon-toolbars-from-commandbars-designer#58858</guid>
  </item> 
  <item>
   <title><![CDATA[How to: Ribbon Toolbars from CommandBars Designer : I&amp;#039;m playing around with Ribbon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16803&amp;PID=58828&amp;title=how-to-ribbon-toolbars-from-commandbars-designer#58828</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6064">lfoster</a><br /><strong>Subject:</strong> 16803<br /><strong>Posted:</strong> 08 June 2010 at 8:32am<br /><br />I'm playing around with Ribbon toolbars that have been loaded in from CommandBars Designer projects and can currently switch between Ribbon bars at runtime which is nice. As I couldn't really find anything in the forum on how to do it I thought I'd post up my code to help others out. The sample applications only show how to load in from binary resources in your application but if like me you want to load different layouts at different times without having to recompile then the following will help.<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />CFile pFile(_T("res\\CamioMin.xcb"),CFile::modeRead);<br />CArchive ar1(&pFile,CArchive::load | CArchive::bNoFlushOnDelete);<br />pCommandBars-&gt;LoadDesignerBars(ar1);<br />ar1.Close();<br /></pre></td></tr></table><br /><br />The following brings my designer toolbars in for customisation, excellent :<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />void CMainFrame::ShowCustomizeDialog(int nSelectedPage)<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPCustomizeSheet cs(GetCommandBars());<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPCommandBars* pCommandBars = GetCommandBars();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPRibbonCustomizeQuickAccessPage pageQuickAccess(&cs);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cs.AddPage(&pageQuickAccess);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageQuickAccess.AddCategories(pCommandBars-&gt;m_pDesignerControls);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPCustomizeKeyboardPage pageKeyboard(&cs);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cs.AddPage(&pageKeyboard);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pageKeyboard.AddCategories(pCommandBars-&gt;m_pDesignerControls);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPCustomizeMenusPage pageMenus(&cs);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cs.AddPage(&pageMenus);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPCustomizeOptionsPage pageOptions(&cs);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cs.AddPage(&pageOptions);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPCustomizeCommandsPage* pCommands = cs.GetCommandsPage();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pCommands-&gt;AddCategories(pCommandBars-&gt;m_pDesignerControls);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cs.SetActivePage(nSelectedPage);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cs.DoModal();<br />}<br /></pre></td></tr></table><br /><br />Just remember to export your resources from the CommandBars Designer so you can load them into your application. I Hope this helps some of those searching the forums.<br /><br />Lewis<br />]]>
   </description>
   <pubDate>Tue, 08 Jun 2010 08:32:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16803&amp;PID=58828&amp;title=how-to-ribbon-toolbars-from-commandbars-designer#58828</guid>
  </item> 
 </channel>
</rss>