<?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 : Foreign resource issue in ribbon sample</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Foreign resource issue in ribbon sample]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 12:27:40 +0000</pubDate>
  <lastBuildDate>Mon, 02 Apr 2012 12:40:36 +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=19588</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[Foreign resource issue in ribbon sample : Well, seeing as though no-one...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19588&amp;PID=67935&amp;title=foreign-resource-issue-in-ribbon-sample#67935</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5036">chimpy</a><br /><strong>Subject:</strong> 19588<br /><strong>Posted:</strong> 02 April 2012 at 12:40pm<br /><br /><p ="Ms&#111;normal"><span style="color:#1F497D">Well, seeing as though no-one has replied yet, either through the forum or via a support ticket, I thought I'd have a go at fixing it myself :)</span></p><p ="Ms&#111;normal"><span style="color:#1F497D">Turns out if you want to provide your own customise sheet that's derived from&nbsp;</span><font color="#1f497d">CXTPPropertySheet (like in the samples), you need to provide an override for</font><span style="color: rgb31, 73, 125; ">&nbsp;AddPage</span></p><p ="Ms&#111;normal"><font color="#1f497d"><br></font></p><p ="Ms&#111;normal"><span style="font-size:9.5pt;  font-family:C&#111;nsolas;color:navy;mso-fareast-:EN-GB">void</span><span style="font-size:9.5pt;font-family:C&#111;nsolas;mso-fareast-:EN-GB"> <span style="color:maro&#111;n">CustomisePropertySheet</span>::<span style="color:maro&#111;n">AddPage</span>(<span style="color:maro&#111;n">CXTPPropertyPage</span>* <span style="color:maro&#111;n">pPage</span>,<span style="color:navy">int</span> <span style="color:maro&#111;n">nIndex</span>)<br></span><span style="font-family: C&#111;nsolas; font-size: 9.5pt; ">{<br></span><span style="font-family: C&#111;nsolas; font-size: 9.5pt; "><span ="Apple-tab-span" style="white-space: pre; ">	</span>CXTPPropertySheet</span><span style="font-family: C&#111;nsolas; font-size: 9.5pt; ">::</span><span style="font-family: C&#111;nsolas; font-size: 9.5pt; color: maro&#111;n; ">InsertPage</span><span style="font-family: C&#111;nsolas; font-size: 9.5pt; ">(</span><span style="font-family: C&#111;nsolas; font-size: 9.5pt; color: maro&#111;n; ">nIndex</span><span style="font-family: C&#111;nsolas; font-size: 9.5pt; ">, </span><span style="font-family: C&#111;nsolas; font-size: 9.5pt; color: maro&#111;n; ">pPage</span><span style="font-family: C&#111;nsolas; font-size: 9.5pt; ">);</span></p><p ="Ms&#111;normal"><span style="font-size:9.5pt;  font-family:C&#111;nsolas;mso-fareast-:EN-GB">&nbsp;</span></p><p ="Ms&#111;normal"><span style="font-size:9.5pt;  font-family:C&#111;nsolas;mso-fareast-:EN-GB">&nbsp;&nbsp;&nbsp; <span style="color:maro&#111;n">LPCDLGTEMPLATE</span> <span style="color:maro&#111;n">pResource</span>= <span style="color:maro&#111;n">XTPResourceManager</span>()-&gt;<span style="color:maro&#111;n">LoadDialogTemplate</span>((<span style="color:maro&#111;n">UINT</span>)(<span style="color:maro&#111;n">UINT_PTR</span>)<span style="color:maro&#111;n">pPage</span>-&gt;<span style="color:maro&#111;n">m_psp</span>.<span style="color:maro&#111;n">pszTemplate</span>);<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size:9.5pt;  font-family:C&#111;nsolas;mso-fareast-:EN-GB">&nbsp;</span></p><p ="Ms&#111;normal"><span style="font-size:9.5pt;  font-family:C&#111;nsolas;mso-fareast-:EN-GB">&nbsp;&nbsp;&nbsp; <span style="color:navy">if</span> (<span style="color:maro&#111;n">pResource</span>)<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size:9.5pt;  font-family:C&#111;nsolas;mso-fareast-:EN-GB">&nbsp;&nbsp;&nbsp; {<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size:9.5pt;  font-family:C&#111;nsolas;mso-fareast-:EN-GB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:maro&#111;n">pPage</span>-&gt;<span style="color:maro&#111;n">m_psp</span>.<span style="color:maro&#111;n">pResource</span> = <span style="color:maro&#111;n">pResource</span>;<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size:9.5pt;  font-family:C&#111;nsolas;mso-fareast-:EN-GB">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color:maro&#111;n">pPage</span>-&gt;<span style="color:maro&#111;n">m_psp</span>.<span style="color:maro&#111;n">dwFlags</span> |= <span style="color:maro&#111;n">PSP_DLGINDIRECT</span>;<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size:9.5pt;  font-family:C&#111;nsolas;mso-fareast-:EN-GB">&nbsp;&nbsp;&nbsp; }<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="font-size:9.5pt;  font-family:C&#111;nsolas;mso-fareast-:EN-GB">}<o:p></o:p></span></p>]]>
   </description>
   <pubDate>Mon, 02 Apr 2012 12:40:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19588&amp;PID=67935&amp;title=foreign-resource-issue-in-ribbon-sample#67935</guid>
  </item> 
  <item>
   <title><![CDATA[Foreign resource issue in ribbon sample : I&amp;#039;ve been having a play with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19588&amp;PID=67830&amp;title=foreign-resource-issue-in-ribbon-sample#67830</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5036">chimpy</a><br /><strong>Subject:</strong> 19588<br /><strong>Posted:</strong> 21 March 2012 at 5:11am<br /><br />I've been having a play with the CodeJock ribbon sample and decided to try out the foreign resources. In CMainFrame's constructor I added the following<div><br></div><div>XTPResourceManager()-&gt;SetResourceFile (resource_dll_path);</div><div><br></div><div>where resource_dll_path is a string set to the path of ToolkitPro.ResourceSv.dll</div><div><br></div><div>When I bring up the ribbon customise dialog, I find I can't click on the 'Customize Ribbon' button on the left of this dialog.</div><div><br></div><div>If I change resource_dll_path to point to the .xml version of this fine everything works as expected. It doesn't seem to matter what language .dll file I choose either.</div><div><br></div><div>I did wonder if the&nbsp;presence&nbsp;of a XTPCoreTree custom control in the resource file was causing the issue</div><div><br></div><div><div>XTP_IDD_RIBBONCUSTOMIZE_RIBBON DIALOGEX DISCARDABLE 0, 0, 452, 227</div><div>STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_CAPTION</div><div>CAPTION "Customize &amp;Ribbon"</div><div>FONT 8, "MS Shell Dlg"</div><div>BEGIN</div><div>&nbsp; &nbsp; LTEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Customize the Ribbon",XTP_IDC_RIBBONPAGE_TITLE,14,7,284,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 22</div><div>&nbsp; &nbsp; LTEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&amp;Choose commands from:",IDC_STATIC,18,34,106,8</div><div>&nbsp; &nbsp; COMBOBOX &nbsp; &nbsp; &nbsp; &nbsp;XTP_IDC_RIBBONCOMBO_CATEGORIES,18,45,164,85,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP</div><div>&nbsp; &nbsp; CONTROL &nbsp; &nbsp; &nbsp; &nbsp; "",XTP_IDC_RIBBONLIST_COMMANDS,"XTPCoreTree",WS_TABSTOP,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 18,65,164,145,WS_EX_CLIENTEDGE</div><div>&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;"&amp;Add &gt;&gt;",XTP_IDC_RIBBONBUTTON_ADD,190,109,52,14</div><div>&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;"&lt;&lt; &amp;Remove",XTP_IDC_RIBBONBUTTON_REMOVE,190,126,52,14</div><div>&nbsp; &nbsp; LTEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "&amp;Customize the Ribbon:",XTP_IDC_RIBBONSTATIC_CUSTOMIZE,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 249,34,106,8</div><div>&nbsp; &nbsp; COMBOBOX &nbsp; &nbsp; &nbsp; &nbsp;XTP_IDC_RIBBONCOMBO_TABGROUP,248,45,164,85,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP</div><div>&nbsp; &nbsp; CONTROL &nbsp; &nbsp; &nbsp; &nbsp; "",XTP_IDC_RIBBONLIST_QUICKACCESS,"XTPCoreTree",</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WS_TABSTOP,249,65,164,98,WS_EX_CLIENTEDGE</div><div>&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;"Ne&amp;w Tab",XTP_IDC_RIBBONBUTTON_NEWTAB,249,168,52,14</div><div>&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;"&amp;New Group",XTP_IDC_RIBBONBUTTON_NEWGROUP,305,168,52,14</div><div>&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;"Rena&amp;me",XTP_IDC_RIBBONBUTTON_RENAME,361,168,52,14</div><div>&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;"",XTP_IDC_RIBBONBUTTON_UP,422,109,21,14</div><div>&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;"",XTP_IDC_RIBBONBUTTON_DOWN,422,126,21,14</div><div>&nbsp; &nbsp; LTEXT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Customizations:",XTP_IDC_RIBBONSTATIC_CUSTOMIZATIONS,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 251,188,50,8</div><div>&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;"Re&amp;set",XTP_IDC_RIBBONBUTTON_RESET,305,186,52,14</div><div>&nbsp; &nbsp; PUSHBUTTON &nbsp; &nbsp; &nbsp;"Im&amp;port/Export",XTP_IDC_RIBBONBUTTON_IMPORT,305,203,77,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 14</div><div>END</div></div><div><br></div><div>Not sure. Anyone else seen this and got a workaround (apart from using the .xml file instead).</div>]]>
   </description>
   <pubDate>Wed, 21 Mar 2012 05:11:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19588&amp;PID=67830&amp;title=foreign-resource-issue-in-ribbon-sample#67830</guid>
  </item> 
 </channel>
</rss>