<?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 : CommandBars.C&#111;ntrols Collecti&#111;n (9.5.1.0)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CommandBars.C&#111;ntrols Collecti&#111;n (9.5.1.0)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:34:12 +0000</pubDate>
  <lastBuildDate>Tue, 07 Dec 2004 07:12:09 +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=1400</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[CommandBars.C&#111;ntrols Collecti&#111;n (9.5.1.0) : Annoying? .....Anyway, I believe...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=4307&amp;title=commandbars-controls-collection-9-5-1-0#4307</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1400<br /><strong>Posted:</strong> 07 December 2004 at 7:12am<br /><br />Annoying?&nbsp; .....Anyway, I believe it is documented in one of thetutorials.&nbsp; The help documentation is in the process of a majorrework over the next few releases.&nbsp; You must only do this forpopup controls.]]>
   </description>
   <pubDate>Tue, 07 Dec 2004 07:12:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=4307&amp;title=commandbars-controls-collection-9-5-1-0#4307</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.C&#111;ntrols Collecti&#111;n (9.5.1.0) : I am guessing I don&amp;#039;t have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=4306&amp;title=commandbars-controls-collection-9-5-1-0#4306</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=871">Gutauckis</a><br /><strong>Subject:</strong> 1400<br /><strong>Posted:</strong> 07 December 2004 at 7:06am<br /><br />I am guessing I don't have to tell you how annoying your answer is.&nbsp;<img src="http://forum.codejock.com/smileys/smiley5.gif" border="0"> Yes that worked.<br><br>Was there something in the documentation that I missed telling me thatpassing the Id of the control in the .add method does nothing that youhave to subsequently set the id after creation?<img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"><br>]]>
   </description>
   <pubDate>Tue, 07 Dec 2004 07:06:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=4306&amp;title=commandbars-controls-collection-9-5-1-0#4306</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.C&#111;ntrols Collecti&#111;n (9.5.1.0) : Manually set the Id for popup...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=4304&amp;title=commandbars-controls-collection-9-5-1-0#4304</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1400<br /><strong>Posted:</strong> 07 December 2004 at 6:25am<br /><br />Manually set the Id for popup controls:<br><br>&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlPopup, ID_EDIT_MENU_UNDO, "&amp;Undo", -1, False)<br>&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">Control.Id = ID_EDIT_MENU_UNDO</span><br>&nbsp;&nbsp;&nbsp;&nbsp; Control.CommandBar.Controls.Add  xtpControlButton, ID_EDIT_UNDO,"Nothing to Undo", -1, False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlPopup, ID_EDIT_MENU_REDO, "&amp;Redo", -1, False)<br>&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-weight: bold;">Control.Id = ID_EDIT_MENU_REDO</span><br>  &nbsp;&nbsp;&nbsp;&nbsp; Control.CommandBar.Controls.Add  xtpControlButton, ID_EDIT_REDO,"Nothing to Redo", -1, False<br>]]>
   </description>
   <pubDate>Tue, 07 Dec 2004 06:25:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=4304&amp;title=commandbars-controls-collection-9-5-1-0#4304</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.C&#111;ntrols Collecti&#111;n (9.5.1.0) :  I have tried the above code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=4296&amp;title=commandbars-controls-collection-9-5-1-0#4296</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=871">Gutauckis</a><br /><strong>Subject:</strong> 1400<br /><strong>Posted:</strong> 06 December 2004 at 7:46pm<br /><br />I have tried the above code in my app as i am trying to do the same thing but it does not work.<br><br>At app startup I create the following:<br><br>&nbsp;&nbsp;&nbsp; Set ControlEdit  =frmMain.CommandBars.ActiveMenuBar.Controls.Add(xtpControl Pop up, 0,"&amp;Edit", -1, False)<br>&nbsp;&nbsp;&nbsp; With ControlEdit.CommandBar.Controls<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlPopup, ID_EDIT_MENU_UNDO, "&amp;Undo", -1, False)<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp ;nbs p;&nbsp;Control.CommandBar.Controls.Add  xtpControlButton, ID_EDIT_UNDO,"Nothing to Undo", -1, False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlPopup, ID_EDIT_MENU_REDO, "&amp;Redo", -1, False)<br>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp ;nbs p;&nbsp;Control.CommandBar.Controls.Add  xtpControlButton, ID_EDIT_REDO,"Nothing to Redo", -1, False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = .Add(xtpControlButton, ID_EDIT_CUT, "Cu&amp;t", -1, False)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Control.BeginGroup = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_EDIT_COPY, "&amp;Copy", -1, False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_EDIT_PASTE, "&amp;Paste", -1, False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_EDIT_PASTENEWIMAGE, "Paste as &amp;New Image", -1, False<br>&nbsp;&nbsp;&nbsp; End With<br><br>I need to get access to the Undo and Redo popup menu items to add and delete items on the fly.<br>When I try to:<br><br>Dim oCommandBarControl As <span style="font-weight: bold;">CommandBarPopup</span><br>Set oCommandBarControl = Me.CommandBars.FindControl(,&nbsp; ID_EDIT_MENU_UNDO, , True)<br>Call oCommandBarControl.<span style="font-weight: bold;">CommandBar</span>.Controls.DeleteAll<br><br>The set returns Nothing<br>I have tried a number of things but nothing is working. I notice whenthe app is starting up and I am creating the items they do not containthe ID I am assigning them. However my execute code works on all mycontrols so I am assuming the ID is set later in the startup....<br><br>Any help would be appreciated. I am using Xtreme Suite.<br><br><span style="font-size:10px"><br /><br />Edited by Gutauckis</span>]]>
   </description>
   <pubDate>Mon, 06 Dec 2004 19:46:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=4296&amp;title=commandbars-controls-collection-9-5-1-0#4296</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.C&#111;ntrols Collecti&#111;n (9.5.1.0) : @SuperMario Thanks for that SM, I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=3974&amp;title=commandbars-controls-collection-9-5-1-0#3974</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=826">Anite.DRC</a><br /><strong>Subject:</strong> 1400<br /><strong>Posted:</strong> 12 November 2004 at 11:03am<br /><br /><P>@SuperMario</P><P>Thanks for that SM,</P><P>I would not have thought to get to the collection via that route, the hierachy of the CommandBars is a little different than existing collection based controls we have in our applications at present. The example has saved me an immense amount of time, I thank you.</P>]]>
   </description>
   <pubDate>Fri, 12 Nov 2004 11:03:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=3974&amp;title=commandbars-controls-collection-9-5-1-0#3974</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.C&#111;ntrols Collecti&#111;n (9.5.1.0) :     Dim oCommandBarControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=3973&amp;title=commandbars-controls-collection-9-5-1-0#3973</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1400<br /><strong>Posted:</strong> 12 November 2004 at 10:47am<br /><br />Dim oCommandBarControl As <span style="font-weight: bold;">CommandBarPopup</span><br>Set oCommandBarControl = Me.CommandBars.FindControl(, ID_CHANGEITEM, , True)<br>Call oCommandBarControl.<span style="font-weight: bold;">CommandBar</span>.Controls.DeleteAll<br><br><br>Collection is the collection of controls the the current controlbelongs to, so Open, Close, Change Item, and Exit are all in the "File"controls commandbar.controls collection.<br><br>So oCommandBarControl.Controls will retreive all the sibling controls to the current control.<span style="font-size:10px"><br /><br />Edited by SuperMario</span>]]>
   </description>
   <pubDate>Fri, 12 Nov 2004 10:47:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=3973&amp;title=commandbars-controls-collection-9-5-1-0#3973</guid>
  </item> 
  <item>
   <title><![CDATA[CommandBars.C&#111;ntrols Collecti&#111;n (9.5.1.0) : Hi all, I&amp;#039;m currently running...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=3971&amp;title=commandbars-controls-collection-9-5-1-0#3971</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=826">Anite.DRC</a><br /><strong>Subject:</strong> 1400<br /><strong>Posted:</strong> 12 November 2004 at 10:04am<br /><br /><P>Hi all,</P><P>I'm currently running the eval version of the AX Suite (9.5.1.0) and have been doing preliminary conversion wirk on one of our aexisting applications.&nbsp;Wondering if you can point me in the direction with the following query.</P><P>The&nbsp;Menu (Abstract)</P><P><table width="99%"><tr><td><pre class="BBcode">&nbsp;File<BR>&nbsp;&nbsp; Open<BR>&nbsp;&nbsp; Close<BR>&nbsp;&nbsp; -----------<BR>&nbsp;&nbsp; Change Item -&gt; Item A<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Item  B<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Item C<BR>&nbsp;&nbsp; -----------<BR>&nbsp;&nbsp; Exit</pre></td></tr></table></P><P>I am attempting to access the collection of items below the 'Change Item' menu, but I seem to be missing part of my brain. <IMG src="http://forum.codejock.com/smileys/smiley5.gif" border="0"></P><P><table width="99%"><tr><td><pre class="BBcode"><BR>Dim oCommandBarControl As CommandBarControl<BR>Set oCommandBarControl = Me.CommandBars.FindControl(, ID_CHANGEITEM, , True)<BR></pre></td></tr></table></P><P>So far so good, this gets me to the 'Change Item' control.&nbsp; However, by looking at the 'Controls Collection' of this item I am confronted with the following:-</P><P>'Open', 'Close', 'Change Item' and 'Exit'.&nbsp; Logically this is quite incorrect, as collection property of an item should not refer to its own siblings.</P><P>What am I missing?</P><P>I want to do this:-</P><P><table width="99%"><tr><td><pre class="BBcode">Dim oCommandBarControl As CommandBarControl<BR>Set oCommandBarControl = Me.CommandBars.FindControl(, ID_CHANGEITEM, , True)<BR>Call oCommandBarControl.Controls.DeleteAll</pre></td></tr></table><BR></P><P>Thank you in advance.</P>]]>
   </description>
   <pubDate>Fri, 12 Nov 2004 10:04:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1400&amp;PID=3971&amp;title=commandbars-controls-collection-9-5-1-0#3971</guid>
  </item> 
 </channel>
</rss>