<?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 : Designer Bars and Menu Customization</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Designer Bars and Menu Customization]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 22:42:46 +0000</pubDate>
  <lastBuildDate>Fri, 17 Apr 2009 01:58:50 +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=14035</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[Designer Bars and Menu Customization : Hi, When you call AddControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14035&amp;PID=48043&amp;title=designer-bars-and-menu-customization#48043</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14035<br /><strong>Posted:</strong> 17 April 2009 at 1:58am<br /><br /><P>Hi,</P><DIV>When you call AddControl&nbsp; you remove it from previous CommandBar.</DIV><DIV>&nbsp;</DIV><DIV>Add it to designerControls and use Copy method to copy it to MenuBar. </DIV><DIV>&nbsp;</DIV><DIV>or just add same control twice&nbsp;</DIV><DIV>CommandBars.DesignerControls.Add(xtpControlButton, 400, "&amp;Temp")</DIV><DIV>thisControl.Controls.Add(xtpControlButton, 400, "&amp;Temp")<BR></DIV>]]>
   </description>
   <pubDate>Fri, 17 Apr 2009 01:58:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14035&amp;PID=48043&amp;title=designer-bars-and-menu-customization#48043</guid>
  </item> 
  <item>
   <title><![CDATA[Designer Bars and Menu Customization : Thanks Oleg.  I changed the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14035&amp;PID=48014&amp;title=designer-bars-and-menu-customization#48014</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5149">chrisc0</a><br /><strong>Subject:</strong> 14035<br /><strong>Posted:</strong> 16 April 2009 at 11:07am<br /><br />Thanks Oleg.<DIV>&nbsp;</DIV><DIV>I changed the code to:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Set myControl = CommandBars.DesignerControls.Add(xtpControlButton, 400, "&amp;Temp")<BR>&nbsp;&nbsp;&nbsp; myControl.Category = "TempCat"<BR>&nbsp;&nbsp;&nbsp; thisControl.Controls.AddControl myControl</DIV><DIV>&nbsp;</DIV><DIV>and now the items appear in the Customize Commands list, but the Temp button does not appear on the menu bar.</DIV><DIV>&nbsp;</DIV><DIV>If the I change the code to </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Set myControl = thisControl.Controls.Add(xtpControlButton, 400, "&amp;Temp")<BR>&nbsp;&nbsp;&nbsp; myControl.Category = "TempCat"<BR>&nbsp;&nbsp;&nbsp; CommandBars.DesignerControls.AddControl myControl<BR></DIV><DIV>Temp appears in the menu bar, but not in the Customize Commands list.</DIV><DIV>&nbsp;</DIV><DIV>How do I get Temp to appear on the menu bar and the Customize Commands list?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 16 Apr 2009 11:07:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14035&amp;PID=48014&amp;title=designer-bars-and-menu-customization#48014</guid>
  </item> 
  <item>
   <title><![CDATA[Designer Bars and Menu Customization : Hi,  You have modify DesignerControls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14035&amp;PID=47973&amp;title=designer-bars-and-menu-customization#47973</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14035<br /><strong>Posted:</strong> 16 April 2009 at 1:35am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You have modify DesignerControls property - add all controls you need here.</DIV>]]>
   </description>
   <pubDate>Thu, 16 Apr 2009 01:35:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14035&amp;PID=47973&amp;title=designer-bars-and-menu-customization#47973</guid>
  </item> 
  <item>
   <title><![CDATA[Designer Bars and Menu Customization : I have a menu created using the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14035&amp;PID=47970&amp;title=designer-bars-and-menu-customization#47970</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5149">chrisc0</a><br /><strong>Subject:</strong> 14035<br /><strong>Posted:</strong> 15 April 2009 at 11:57pm<br /><br />I have a menu created using the Designer that is loaded with LoadDesignerBars. I now want to add a menu item in&nbsp;the program&nbsp;and have that item appear in the Commands tab of the Customize window so that I can add it to a toolbar. I can make this work if the whole menu system&nbsp;is created in code, but if I use LoadDesignerBars, the added menu item does not appear in the Commands list of the Customize window.<DIV>&nbsp;</DIV><DIV>Here is an example. I take the Designer sample project (for VB6) and modify it so that the form load event now reads:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub Form_Load()</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; 'Begin Modification</DIV><DIV>&nbsp;&nbsp;&nbsp; 'for adding a menu item</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim thisControl As CommandBarControl<BR>&nbsp;&nbsp;&nbsp; Dim myControl As CommandBarControl</DIV><DIV>&nbsp;&nbsp;&nbsp; 'End Modification </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; CommandBarsGlobalSettings.App = App<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Me.Left = GetSetting(App.Title, "Settings", "MainLeft", Me.Left)<BR>&nbsp;&nbsp;&nbsp; Me.Top = GetSetting(App.Title, "Settings", "MainTop", Me.Top)<BR>&nbsp;&nbsp;&nbsp; Me.Width = GetSetting(App.Title, "Settings", "MainWidth", Me.Width)<BR>&nbsp;&nbsp;&nbsp; Me.Height = GetSetting(App.Title, "Settings", "MainHeight", Me.Height)<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; CommandBars.LoadDesignerBars<BR>&nbsp;&nbsp;&nbsp; CommandBars.LoadCommandBars "Codejock Software ActiveX Demos", App.Title, "Layout"<BR>&nbsp;&nbsp;&nbsp; </DIV><DIV><DIV>&nbsp;&nbsp;&nbsp; 'Begin Modification</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; 'create a new menu item and set category<BR>&nbsp;&nbsp;&nbsp; Set thisControl = CommandBars.FindControl(xtpControlButton, ID_FILE_OPEN, , True)<BR>&nbsp;&nbsp;&nbsp; Set myControl = thisControl.Controls.Add(xtpControlButton, 400, "&amp;Temp")<BR>&nbsp;&nbsp;&nbsp; myControl.Category = "TempCat"<BR>&nbsp;&nbsp; 'End Modification <DIV>&nbsp;</DIV>&nbsp;&nbsp;&nbsp; <BR>End Sub<BR></DIV><DIV>I run the modified project, &nbsp;right click in an empty part of the menu bar, select Customize and then click on the Commands tab. I expect there to be a new category TempCat in the categories list and I also expect Temp to appear in the command list, but these items are not present.</DIV><DIV>&nbsp;</DIV><DIV>Can anybody tell me what is wrong with my code?</DIV><DIV>&nbsp;</DIV></DIV>]]>
   </description>
   <pubDate>Wed, 15 Apr 2009 23:57:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14035&amp;PID=47970&amp;title=designer-bars-and-menu-customization#47970</guid>
  </item> 
 </channel>
</rss>