<?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 : Save to XML ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Save to XML ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 14:20:01 +0000</pubDate>
  <lastBuildDate>Thu, 04 Jun 2009 08:27:52 +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=14327</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[Save to XML ? : Hearty Thanks Oleg for your support...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49637&amp;title=save-to-xml#49637</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 14327<br /><strong>Posted:</strong> 04 June 2009 at 8:27am<br /><br />Hearty Thanks Oleg for your support and spending your valuable time for me. <img src="http://forum.codejock.com/smileys/smiley31.gif" border="0" align="absmiddle"><br>]]>
   </description>
   <pubDate>Thu, 04 Jun 2009 08:27:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49637&amp;title=save-to-xml#49637</guid>
  </item> 
  <item>
   <title><![CDATA[Save to XML ? : Hi,  So just use same code -...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49635&amp;title=save-to-xml#49635</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14327<br /><strong>Posted:</strong> 04 June 2009 at 8:13am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>So just use same code - first create control and then add it with pToolBar-&gt;GetControls()-&gt;Add(pPopupColor );</DIV>]]>
   </description>
   <pubDate>Thu, 04 Jun 2009 08:13:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49635&amp;title=save-to-xml#49635</guid>
  </item> 
  <item>
   <title><![CDATA[Save to XML ? :   Thanks Oleg,I am creating...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49629&amp;title=save-to-xml#49629</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 14327<br /><strong>Posted:</strong> 04 June 2009 at 5:16am<br /><br />Thanks Oleg,<br><br>I am creating a ColorPopup in the OnCreateControl() like<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (lpCreateControl-&gt;nID == ID_COLOR)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPControlPopupColor* pPopupColor = new CXTPControlPopupColor();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPPopupBar* pColorBar = CXTPPopupToolBar::CreatePopupToolBar(GetCommandBars());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pPopupColor-&gt;SetCommandBar(pColorBar);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pColorBar-&gt;GetControls()-&gt;Add(new CXTPControlButtonColor(), XTP_IDS_AUTOMATIC_FILL);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pColorBar-&gt;GetControls()-&gt;Add(new CXTPControlColorSelector(), ID_SELECTOR_FILL);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pColorBar-&gt;GetControls()-&gt;Add(new CXTPControlButtonColor(), XTP_IDS_MORE_COLORS_FILL);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pColorBar-&gt;SetTearOffPopup(_T("Color"), 1006, 0);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pColorBar-&gt;InternalRelease();<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lpCreateControl-&gt;pControl = pPopupColor;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>and a custom control like<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (lpCreateControl-&gt;nID == ID_STYLE)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPControlCustom* pControl = CXTPControlCustom::CreateControlCustom(&amp;m_wndComboStyle);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl-&gt;SetFlags(xtpFlagManualUpdate) ;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lpCreateControl-&gt;pControl = pControl;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return TRUE;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; <br><br>If we use XML which is the best way to do the same ?<br><br><br>]]>
   </description>
   <pubDate>Thu, 04 Jun 2009 05:16:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49629&amp;title=save-to-xml#49629</guid>
  </item> 
  <item>
   <title><![CDATA[Save to XML ? : Hi, Yes, OnCreateControl is called...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49620&amp;title=save-to-xml#49620</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14327<br /><strong>Posted:</strong> 04 June 2009 at 2:10am<br /><br />Hi,<DIV>Yes, OnCreateControl is called only when you add&nbsp; buttons using IDs (pToolBar-&gt;SetButtons or pToolBar-&gt;LoadToolBar). If you manually create it, its not called.</DIV>]]>
   </description>
   <pubDate>Thu, 04 Jun 2009 02:10:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49620&amp;title=save-to-xml#49620</guid>
  </item> 
  <item>
   <title><![CDATA[Save to XML ? :  Hi Oleg, I have added a CommandButtonPopup(ColorPopup)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49617&amp;title=save-to-xml#49617</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 14327<br /><strong>Posted:</strong> 04 June 2009 at 1:20am<br /><br />Hi Oleg, <br><br>I have added a CommandButtonPopup(ColorPopup) using the pToolbar-&gt;GetControls()-&gt;Add() method after LoadDesignerBars(), the new button appears on the toolbar but still the OnCreateControl() is not called ?<br><br><br>]]>
   </description>
   <pubDate>Thu, 04 Jun 2009 01:20:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49617&amp;title=save-to-xml#49617</guid>
  </item> 
  <item>
   <title><![CDATA[Save to XML ? :   Thanks Oleg, I will check...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49565&amp;title=save-to-xml#49565</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 14327<br /><strong>Posted:</strong> 02 June 2009 at 2:52am<br /><br />Thanks Oleg, I will check out ...<br>]]>
   </description>
   <pubDate>Tue, 02 Jun 2009 02:52:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49565&amp;title=save-to-xml#49565</guid>
  </item> 
  <item>
   <title><![CDATA[Save to XML ? : Hi,  Just call it after you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49561&amp;title=save-to-xml#49561</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14327<br /><strong>Posted:</strong> 02 June 2009 at 2:27am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Just call it after you already load designer bars.</DIV>]]>
   </description>
   <pubDate>Tue, 02 Jun 2009 02:27:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49561&amp;title=save-to-xml#49561</guid>
  </item> 
  <item>
   <title><![CDATA[Save to XML ? :     Thanks Oleg, Do i need...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49543&amp;title=save-to-xml#49543</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 14327<br /><strong>Posted:</strong> 01 June 2009 at 8:23am<br /><br />Thanks Oleg, <br><br>Do i need to add pToolbar-&gt;GetControls()-&gt;Add(pControl); in Mainframe::OnCreate() ? LoadFrame() ?<br>Add() will add the control at the end of toolbar controls but OnCreateControl() really provides an easy way to Put Customcontrols in the Toolbar in their own location.<br><br>My old code that uses the loading of commandbars from resource works when i create custom controls in OnCreateControl() but when i Load Commandbars using the LoadDesignerBars() using XML file it didnt work the same way so i dont know which event will be called by LoadDesignerBars() where i can create custom controls which provides similar function of OnCreateControl() rather than using Add() method ...<br><br>2) oncreatecontrol() ?<br>2) createcommandbar() ? <br>3) oninitcommandspopup() ? <br>4) other ?<br><br>Thanks again<br>]]>
   </description>
   <pubDate>Mon, 01 Jun 2009 08:23:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49543&amp;title=save-to-xml#49543</guid>
  </item> 
  <item>
   <title><![CDATA[Save to XML ? : Hi,  create with new CXTPControlCustom()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49539&amp;title=save-to-xml#49539</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14327<br /><strong>Posted:</strong> 01 June 2009 at 8:08am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>create with new CXTPControlCustom() and insert with pToolbar-&gt;GetControls()-&gt;Add(pControl);</DIV>]]>
   </description>
   <pubDate>Mon, 01 Jun 2009 08:08:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49539&amp;title=save-to-xml#49539</guid>
  </item> 
  <item>
   <title><![CDATA[Save to XML ? : Hi, How to create CustomControls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49506&amp;title=save-to-xml#49506</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1754">kanitamildasan</a><br /><strong>Subject:</strong> 14327<br /><strong>Posted:</strong> 30 May 2009 at 7:49am<br /><br />Hi, How to&nbsp; create CustomControls without using OnCreateControl() ?]]>
   </description>
   <pubDate>Sat, 30 May 2009 07:49:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14327&amp;PID=49506&amp;title=save-to-xml#49506</guid>
  </item> 
 </channel>
</rss>