<?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 : right click pop up menu</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : right click pop up menu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:30:21 +0000</pubDate>
  <lastBuildDate>Wed, 25 Jul 2018 11:23:40 +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=23686</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[right click pop up menu : HelloI have the made a right click...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23686&amp;PID=76952&amp;title=right-click-pop-up-menu#76952</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9280">paulhaggo</a><br /><strong>Subject:</strong> 23686<br /><strong>Posted:</strong> 25 July 2018 at 11:23am<br /><br />Hello<div><br></div><div>I have the made a right click menu creation code in vb6, which works fine, however when i make a submenu like so</div><div><br></div><div><div><span style=": rgb240, 241, 245;"><table width="99%"><tr><td><pre class="BBcode"></span></div><div>Set oPopup = oBar.Controls.Add(xtpControlPopup, 1, "Sub Menu")</div><div>With oPopup.CommandBar.Controls</div><div><span style="white-space:pre">	</span>.Add xtpControlButton, 1, "Test 123"</div><div>End With</div></div><div><span style=": rgb240, 241, 245;"></pre></td></tr></table></span></div><div><br></div><div>it works and makes a submenu on the popup, with 1 item on the submenu</div><div><br></div><div>However I have made my function so that you call it for each item you want adding to the menu, but if you call the above code twice, you, of course,&nbsp;get 2 submenus and not 2 items on 1 submenu</div><div><br></div><div>so does anyone know how to add an item to a submenu which is already created, I know I can do the following</div><div><br></div><div><div><span style=": rgb240, 241, 245;"><table width="99%"><tr><td><pre class="BBcode"></span></div><div>Set oPopup = oBar.Controls.Add(xtpControlPopup, 1, "Sub Menu")</div><div>With oPopup.CommandBar.Controls</div><div><span style="white-space: pre;">	</span>.Add xtpControlButton, 1, strMenuCaption</div><div><span style="white-space:pre">	</span>.Add xtpControlButton, 1, strMenuCaption</div><div>End With</div></div><div><span style=": rgb240, 241, 245;"></pre></td></tr></table></span></div><div><span style=": rgb240, 241, 245;"><br></span></div><div>however I do not send all items at once to the function, so this does not work with my current setup</div><div><br></div><div>I just want to be able to do this line</div><div><br></div><div><span style=": rgb240, 241, 245;"><table width="99%"><tr><td><pre class="BBcode"></span></div><div>.Add xtpControlButton, 1, strMenuCaption</div><div><span style=": rgb240, 241, 245;"></pre></td></tr></table></span></div><div><span style=": rgb240, 241, 245;"><br></span></div><div>without it make a new submenu each time, but that needs the oBar.Controls, which i can not create without make another submenu</div><div><br></div><div>cheers&nbsp;<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" /></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 25 Jul 2018 11:23:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23686&amp;PID=76952&amp;title=right-click-pop-up-menu#76952</guid>
  </item> 
 </channel>
</rss>