<?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 : Customization questions</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Customization questions]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 17:51:18 +0000</pubDate>
  <lastBuildDate>Thu, 20 Nov 2008 13:06:08 +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=12269</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[Customization questions :   oleg wrote:Hi, You can&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=43042&amp;title=customization-questions#43042</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4463">MadRiver</a><br /><strong>Subject:</strong> 12269<br /><strong>Posted:</strong> 20 November 2008 at 1:06pm<br /><br /> <table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Hi,<br /><div>You can't add same control to toolbar and designers controls. Create it again : <strong>pDesignerControls-&gt;Add(xtpControlButton, etc)</div></strong></td></tr></table> <br />What is AddControl() for, and how would you use it?<br />Is there an easy way to clone a control? CommandBarControl-&gt;Copy() needs a CommandBar for its first param.]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 13:06:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=43042&amp;title=customization-questions#43042</guid>
  </item> 
  <item>
   <title><![CDATA[Customization questions : Hi, You can&amp;#039;t add same control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=43032&amp;title=customization-questions#43032</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12269<br /><strong>Posted:</strong> 20 November 2008 at 9:23am<br /><br />Hi,<DIV>You can't add same control to toolbar and designers controls. Create it again : <strong>pDesignerControls-&gt;Add(xtpControlButton, etc)</DIV></strong>]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 09:23:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=43032&amp;title=customization-questions#43032</guid>
  </item> 
  <item>
   <title><![CDATA[Customization questions :   strider wrote:I am having the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=43029&amp;title=customization-questions#43029</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4463">MadRiver</a><br /><strong>Subject:</strong> 12269<br /><strong>Posted:</strong> 20 November 2008 at 9:11am<br /><br /> <table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by strider" alt="Originally posted by strider" style="vertical-align: text-bottom;" /> <strong>strider wrote:</strong><br /><br /><p>I am having the same problem.  Do we need to clone the control, or just add the original one?</p></td></tr></table> <br /><br />The information in the help file suggests you can add an existing control:<br /><br />AddControl Method<br />Adds an existing command bar control to the collection.<br /><br />Has anyone made any progress on this problem?<br />]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 09:11:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=43029&amp;title=customization-questions#43029</guid>
  </item> 
  <item>
   <title><![CDATA[Customization questions : I also have a same problem. To...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=42721&amp;title=customization-questions#42721</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4437">dajya</a><br /><strong>Subject:</strong> 12269<br /><strong>Posted:</strong> 09 November 2008 at 9:12pm<br /><br /><P>I also have a same problem.</P><P>To fix it, i already scanned the sample code supported by extoolkit.</P><P>And i found out some clue. whenever i implement custom control or popuped control on the toolbar, then whole custom menu related to this toolbar&nbsp;turned&nbsp;disabled or grayed. Is it bugs? or did i commit any mistake?</P>]]>
   </description>
   <pubDate>Sun, 09 Nov 2008 21:12:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=42721&amp;title=customization-questions#42721</guid>
  </item> 
  <item>
   <title><![CDATA[Customization questions : I am having the same problem....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=42706&amp;title=customization-questions#42706</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4097">strider</a><br /><strong>Subject:</strong> 12269<br /><strong>Posted:</strong> 07 November 2008 at 10:55am<br /><br /><P>I am having the same problem.&nbsp; Do we need to clone the control, or just add the original one?</P>]]>
   </description>
   <pubDate>Fri, 07 Nov 2008 10:55:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=42706&amp;title=customization-questions#42706</guid>
  </item> 
  <item>
   <title><![CDATA[Customization questions :    oleg wrote:Hi, Yes you need...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=41481&amp;title=customization-questions#41481</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4463">MadRiver</a><br /><strong>Subject:</strong> 12269<br /><strong>Posted:</strong> 29 September 2008 at 3:00pm<br /><br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Hi,<br /><div>Yes you need fill DesignerControls. In Customization event or just in initialization code.</div></td></tr></table>I thought I was filling in the DesignerControls collection in 'initialization code'.&nbsp;&nbsp;&nbsp;&nbsp;<br />// ------------------------------------&nbsp;&nbsp;&nbsp;&nbsp;<br />// Create Standard Toolbar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// ------------------------------------&nbsp;&nbsp;&nbsp;&nbsp;<br />ICommandBarPtr pToolbar = g_spCommandBars-&gt;Add(_bstr_t("WhammyBar"), xtpBarTop);&nbsp;&nbsp;&nbsp;&nbsp;<br />pToolbar-&gt;PutBarID(ID_MAIN_TOOLBAR);&nbsp;&nbsp;&nbsp;&nbsp;<br />pDesignerControls = g_spCommandBars-&gt;GetDesignerControls();&nbsp;&nbsp;&nbsp;&nbsp;<br />pControls = pToolbar-&gt;GetControls();&nbsp;&nbsp;&nbsp;&nbsp;<br />pControl = pControls-&gt;Add(xtpControlButton, M_FILE_NEW, "");&nbsp;&nbsp;&nbsp;&nbsp;<br />pControl-&gt;PutDescriptionText(_bstr_t("Create a new document"));&nbsp;&nbsp;&nbsp;&nbsp;<br /><strong>pDesignerControls-&gt;AddControl(pControl);</strong>]]>
   </description>
   <pubDate>Mon, 29 Sep 2008 15:00:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=41481&amp;title=customization-questions#41481</guid>
  </item> 
  <item>
   <title><![CDATA[Customization questions : Hi, Yes you need fill DesignerControls....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=41480&amp;title=customization-questions#41480</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12269<br /><strong>Posted:</strong> 29 September 2008 at 2:42pm<br /><br /><P>Hi,</P><DIV>Yes you need fill DesignerControls. In Customization event or just in initialization code.</DIV>]]>
   </description>
   <pubDate>Mon, 29 Sep 2008 14:42:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=41480&amp;title=customization-questions#41480</guid>
  </item> 
  <item>
   <title><![CDATA[Customization questions : Thanks for the reply.   The...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=41468&amp;title=customization-questions#41468</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4463">MadRiver</a><br /><strong>Subject:</strong> 12269<br /><strong>Posted:</strong> 29 September 2008 at 8:59am<br /><br />Thanks for the reply.&nbsp; <br><br>The items in the Add/Remove dialog are now active.<br>However, there are no commands in the Customize/Actions tab.<br><br>When I create the toolbars, I add the controls to the DesignerControls collection:<br>&nbsp;&nbsp;&nbsp; pControl = pControls-&gt;Add(xtpControlButton, M_FILE_NEW, "");<br>&nbsp;&nbsp;&nbsp; pControl-&gt;PutDescriptionText(_bstr_t("Create a new document"));<br>&nbsp;&nbsp;&nbsp; pDesignerControls-&gt;AddControl(pControl);<br><br>Or does the DesignerControls collection have to get populated in the Customization event handler?<br> ]]>
   </description>
   <pubDate>Mon, 29 Sep 2008 08:59:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=41468&amp;title=customization-questions#41468</guid>
  </item> 
  <item>
   <title><![CDATA[Customization questions : Hi,  Call EnableCustomize only...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=41453&amp;title=customization-questions#41453</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12269<br /><strong>Posted:</strong> 29 September 2008 at 3:49am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Call EnableCustomize only after all menus/toolbars will be created - it will create "original" state of commandbars.</DIV>]]>
   </description>
   <pubDate>Mon, 29 Sep 2008 03:49:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=41453&amp;title=customization-questions#41453</guid>
  </item> 
  <item>
   <title><![CDATA[Customization questions : Hello,Is there a white paper or...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=41425&amp;title=customization-questions#41425</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4463">MadRiver</a><br /><strong>Subject:</strong> 12269<br /><strong>Posted:</strong> 26 September 2008 at 5:31pm<br /><br />Hello,<br><br>Is there a white paper or tutorial that discusses runtime user Customization of toolbars and menus?<br><br>In C++, I am doing this:<br>&nbsp;&nbsp; pCommandBars-&gt;EnableCustomization(VARIANT_TRUE);<br><br>&nbsp;&nbsp;&nbsp; pControl = pControls-&gt;Add(xtpControlButton, M_FILE_NEW, "");<br>&nbsp;&nbsp;&nbsp; pControl-&gt;PutDescriptionText(_bstr_t("Create a new document"));<br>&nbsp;&nbsp;&nbsp; pDesignerControls-&gt;AddControl(pControl);<br><br>When I click on the arrow to open the Customization dialog,<br>I see this:<br><img src="uploads/20080926_172617_img1.bmp" height="142" width="425" border="0"><br><br>Why are the command items greyed out?<br><br>And the Customize dialog -- how do I populate it:<br><img src="uploads/20080926_173052_img2.bmp" height="340" width="371" border="0"><br><br>Thanks for any advice...<br><br><br><br><br><br><br><img src="file:///C:/DOCUME%7E1/CHBATE%7E1.MIC/LOCALS%7E1/Temp/moz-screenshot.jpg" border="0"><img src="file:///C:/DOCUME%7E1/CHBATE%7E1.MIC/LOCALS%7E1/Temp/moz-screenshot-1.jpg" border="0">]]>
   </description>
   <pubDate>Fri, 26 Sep 2008 17:31:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12269&amp;PID=41425&amp;title=customization-questions#41425</guid>
  </item> 
 </channel>
</rss>