<?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 : Using XML bars customizati&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Using XML bars customizati&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 17:27:46 +0000</pubDate>
  <lastBuildDate>Thu, 02 Mar 2006 15:47:43 +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=3653</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[Using XML bars customizati&#111;n : To solve problem 1: replace param.bSaveOriginalControls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3653&amp;PID=11260&amp;title=using-xml-bars-customization#11260</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3653<br /><strong>Posted:</strong> 02 March 2006 at 3:47pm<br /><br /><P>To solve problem 1:</P><P>replace</P><P>param.bSaveOriginalControls = FALSE;</P><P>to</P><P>param.bSaveOriginalControls = <strong>TRUE</strong>;</P><P>&nbsp;</P><P>To solve problem 2:</P><P>call </P><P><strong>pxCommandBars-&gt;EmptySection();</strong></P><P>before GetCommandBars()-&gt;DoPropExchange(&amp;pxCommandBars, &amp;param);</P>]]>
   </description>
   <pubDate>Thu, 02 Mar 2006 15:47:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3653&amp;PID=11260&amp;title=using-xml-bars-customization#11260</guid>
  </item> 
  <item>
   <title><![CDATA[Using XML bars customizati&#111;n : I also tried it in &amp;#034;Grep&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3653&amp;PID=11245&amp;title=using-xml-bars-customization#11245</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=389">yoavo</a><br /><strong>Subject:</strong> 3653<br /><strong>Posted:</strong> 02 March 2006 at 2:36am<br /><br /><P>I also tried it in "Grep" sample (without changing the code) - in this sample you use the same solusion, and the problem exist there too: Try to rename a menu item by customization - it will not be kept, and the .xml file is growing each time you close the application.</P>]]>
   </description>
   <pubDate>Thu, 02 Mar 2006 02:36:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3653&amp;PID=11245&amp;title=using-xml-bars-customization#11245</guid>
  </item> 
  <item>
   <title><![CDATA[Using XML bars customizati&#111;n : Hi Oleg, I tried to follow your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3653&amp;PID=11238&amp;title=using-xml-bars-customization#11238</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=389">yoavo</a><br /><strong>Subject:</strong> 3653<br /><strong>Posted:</strong> 01 March 2006 at 6:47am<br /><br /><P>Hi Oleg,</P><P>I tried to follow your instructions but I have some problems with this solusion (I tried to do it also in "Gui_Whidbey" sample and had the same problems as in my App&nbsp;):</P><P>1. The size of the .xml file keeps growing each time I save the layout to the file.</P><P>2. The customization does not work OK (if I rename a menu item and run the application again, the renamed name is not restored). I think it happens because the section is not written from scrach and it contains "leftovers" of previous layout saving.</P><P>Yoav.</P>]]>
   </description>
   <pubDate>Wed, 01 Mar 2006 06:47:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3653&amp;PID=11238&amp;title=using-xml-bars-customization#11238</guid>
  </item> 
  <item>
   <title><![CDATA[Using XML bars customizati&#111;n : Just add  px.LoadFromFile(aCustomizationFileName); after...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3653&amp;PID=10993&amp;title=using-xml-bars-customization#10993</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3653<br /><strong>Posted:</strong> 15 February 2006 at 7:53am<br /><br /><P>Just add </P><P>px.LoadFromFile(aCustomizationFileName);</P><P>after CXTPPropExchangeXMLNode px(FALSE, 0, _T("Settings"));<BR><BR></P>]]>
   </description>
   <pubDate>Wed, 15 Feb 2006 07:53:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3653&amp;PID=10993&amp;title=using-xml-bars-customization#10993</guid>
  </item> 
  <item>
   <title><![CDATA[Using XML bars customizati&#111;n : Hi, In my application I use XML...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3653&amp;PID=10981&amp;title=using-xml-bars-customization#10981</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=389">yoavo</a><br /><strong>Subject:</strong> 3653<br /><strong>Posted:</strong> 15 February 2006 at 3:44am<br /><br /><P>Hi,</P><P>In my application I use XML bars customization. I have about 4 DocTemplates and I want to store a different bars layout for each one of them. I prefer to work with one xml file (and make&nbsp;4 different sections for each DocTemplate). My problem is that it looks like each time I use the method SaveToFile (of CXTPPropExchangeXMLNode), the file is written from scratch, and the previous sections are deleted.</P><P>My question is: Can I do it&nbsp;with one&nbsp;XML file with 4 sections, or should I compromise on 4 different XML files for each layout ?</P><P>Here is my code (which is called each time a different DocTemplate is load):</P><P>CCimString aCustomizationFileName = GetCustomizationFileName();<BR>CXTPPropExchangeXMLNode px(FALSE, 0, _T("Settings"));<BR>if (px.OnBeforeExchange()) <BR>{<BR>&nbsp;CXTPPropExchangeSection pxCommandBars(px.GetSection(aStateName));<BR>&nbsp;XTP_COMMANDBARS_PROPEXCHANGE_PARAM param;<BR>&nbsp;param.bSerializeControls = TRUE;<BR>&nbsp;param.bSaveOriginalControls = FALSE;<BR>&nbsp;mToolBarManager-&gt;DoPropExchange(&amp;pxCommandBars, &amp;param);<BR>&nbsp;px.SaveToFile(aCustomizationFileName);<BR>}<BR></P><P>Yoav.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 15 Feb 2006 03:44:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3653&amp;PID=10981&amp;title=using-xml-bars-customization#10981</guid>
  </item> 
 </channel>
</rss>