<?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 : SOLVED: Respond to Context Menu</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : SOLVED: Respond to Context Menu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 03:53:44 +0000</pubDate>
  <lastBuildDate>Thu, 28 Aug 2008 09:10:23 +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=11984</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[SOLVED: Respond to Context Menu : Hi,  You can also copy buttons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40553&amp;title=solved-respond-to-context-menu#40553</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11984<br /><strong>Posted:</strong> 28 August 2008 at 9:10am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You can also copy buttons into your popmenu and also check if they exist. I have only VB code to show you but maybe you understand it anyway.</DIV><DIV>&nbsp;</DIV><DIV>Dim Control As CommandBarControl</DIV><DIV>Dim ContextControl As CommandBarControl<BR>Dim Popup As CommandBar<BR></DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = CommandBars.ActiveMenuBar.FindControl(, ID_POPUPCONTROL)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Control Is Nothing Then Exit Sub<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Popup = CommandBars.Add("Popup", xtpBarPopup)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each ContextControl In Control.CommandBar.Controls<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ContextControl.Copy Popup<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Popup.ShowPopup</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 28 Aug 2008 09:10:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40553&amp;title=solved-respond-to-context-menu#40553</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Respond to Context Menu : Hello Aaron,   I don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40551&amp;title=solved-respond-to-context-menu#40551</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2890">WaleedSeada</a><br /><strong>Subject:</strong> 11984<br /><strong>Posted:</strong> 28 August 2008 at 8:47am<br /><br />Hello Aaron, <DIV>&nbsp;</DIV><DIV>I don't use context Menus, I used the Popup menu from the one attahced to the ActiveMenuBar.</DIV><DIV>&nbsp;</DIV><DIV>and it is created in code ...</DIV><DIV>&nbsp;</DIV><DIV>regards,</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 28 Aug 2008 08:47:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40551&amp;title=solved-respond-to-context-menu#40551</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Respond to Context Menu : Hi,  Yes it should be. Do you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40541&amp;title=solved-respond-to-context-menu#40541</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11984<br /><strong>Posted:</strong> 28 August 2008 at 6:29am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes it should be. Do you create contextmenu in code as well? Or create it when necessary? If you do, try to loop Commandbar.Controls collection and check if there are any...</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 28 Aug 2008 06:29:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40541&amp;title=solved-respond-to-context-menu#40541</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Respond to Context Menu : Hello Aaron, I used this code:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40538&amp;title=solved-respond-to-context-menu#40538</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2890">WaleedSeada</a><br /><strong>Subject:</strong> 11984<br /><strong>Posted:</strong> 28 August 2008 at 6:00am<br /><br /><P>Hello Aaron,</P><P>I used this code: CommandBars.ActiveMenuBar.Visible = False</P><DIV></DIV>when I rightclick on any control I got an empty Menu (small Gray box)<DIV>&nbsp;</DIV><DIV>If I put it back to True, I can ....</DIV><DIV>&nbsp;</DIV><DIV>what is the problem the Menubar can be exist but not visible, right ...</DIV><DIV>&nbsp;</DIV><DIV>Best regards</DIV>]]>
   </description>
   <pubDate>Thu, 28 Aug 2008 06:00:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40538&amp;title=solved-respond-to-context-menu#40538</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Respond to Context Menu : Hi,  I justed tested this and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40535&amp;title=solved-respond-to-context-menu#40535</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11984<br /><strong>Posted:</strong> 28 August 2008 at 5:34am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I justed tested this and it works with STANDARD VB MENU <img src="https://forum.codejock.com/smileys/smiley36.gif" border="0">&nbsp;So I expect... it should be working when creating a menu in code. </DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 28 Aug 2008 05:34:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40535&amp;title=solved-respond-to-context-menu#40535</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Respond to Context Menu : Dear All,  I am doomed !!!  The...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40533&amp;title=solved-respond-to-context-menu#40533</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2890">WaleedSeada</a><br /><strong>Subject:</strong> 11984<br /><strong>Posted:</strong> 28 August 2008 at 5:02am<br /><br />Dear All,<DIV>&nbsp;</DIV><DIV>I am doomed !!!</DIV><DIV>&nbsp;</DIV><DIV>The Popup menu solution to be used as context menu has been successful so far, until I decided to hide the Active menu bar....</DIV><DIV>&nbsp;</DIV><DIV>I can't used the popup menus anymore ...</DIV><DIV>&nbsp;</DIV><DIV>any ideas, I am ... doomed</DIV><DIV>&nbsp;</DIV><DIV>Best regards,</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 28 Aug 2008 05:02:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40533&amp;title=solved-respond-to-context-menu#40533</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Respond to Context Menu : Hi,  try not specify x and y...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40480&amp;title=solved-respond-to-context-menu#40480</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11984<br /><strong>Posted:</strong> 27 August 2008 at 8:29am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>try not specify x and y to allow commandbars use cursor coordintes. guess problem in your calculation fo these x and y.</DIV>]]>
   </description>
   <pubDate>Wed, 27 Aug 2008 08:29:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40480&amp;title=solved-respond-to-context-menu#40480</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Respond to Context Menu : Hello All,   I try the Popup...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40470&amp;title=solved-respond-to-context-menu#40470</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2890">WaleedSeada</a><br /><strong>Subject:</strong> 11984<br /><strong>Posted:</strong> 27 August 2008 at 6:26am<br /><br />Hello All, <DIV>&nbsp;</DIV><DIV>I try the Popup Menu&nbsp;it works fine as Popup menu up in the active menu bar, but not as Context Menu, Still behave the same .... !!!</DIV><DIV>&nbsp;</DIV><DIV>Funny, isn't it ....</DIV><DIV>&nbsp;</DIV><DIV>Ideas ......</DIV><DIV>&nbsp;</DIV><DIV>/Edit:</DIV><DIV>&nbsp;</DIV><DIV>Thanks Aaron&nbsp;they both&nbsp;works fine ...</DIV><DIV>CommandBars.ActiveMenuBar.Controls(1).CommandBar.ShowPopup()</DIV><DIV>&amp;</DIV><DIV>CommandBars.ActiveMenuBar.Controls(1).CommandBar.SetTearOffPopup("Tree Options", 20000, 500)</DIV><DIV>&nbsp;</DIV><DIV>It is strange that the Context Menu is not behaving the same !!!</DIV><DIV>&nbsp;</DIV><DIV>Not a problem as long as It surve the purpose, right ...</DIV><DIV>&nbsp;</DIV><DIV>Thanks again Aaron.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 27 Aug 2008 06:26:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40470&amp;title=solved-respond-to-context-menu#40470</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Respond to Context Menu : Hi, Yes, you can. I have a mainmenu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40467&amp;title=solved-respond-to-context-menu#40467</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 11984<br /><strong>Posted:</strong> 27 August 2008 at 5:55am<br /><br /><P>Hi,</P><DIV>Yes, you can. I have a mainmenu with&nbsp;items, same items can be shown as toolbar and/or context menu.&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Just call: </DIV><DIV>CommandBars.ActiveMenuBar.Controls(ID_POPUP_CONTROL).CommandBar.ShowPopup</DIV><DIV>&nbsp;</DIV><DIV>for showing contextmenu</DIV><DIV>&nbsp;</DIV><DIV>Just call: </DIV><DIV>CommandBarsViewEditor.ActiveMenuBar.Controls(ID_POPUP_CONTROL).CommandBar.SetTearOffPopup "Caption of toolbar", SOME_ID, 500<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV>for possibility to tearoff toolbar</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 27 Aug 2008 05:55:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40467&amp;title=solved-respond-to-context-menu#40467</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Respond to Context Menu : Hello Aaron,   I create the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40461&amp;title=solved-respond-to-context-menu#40461</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2890">WaleedSeada</a><br /><strong>Subject:</strong> 11984<br /><strong>Posted:</strong> 27 August 2008 at 5:32am<br /><br />Hello Aaron, <DIV>&nbsp;</DIV><DIV>I create the full Context Menu in Code ...</DIV><DIV>Is it cona be different to create those context as popup menus in the Active menubar itself ??? I 'll give it a try ....</DIV><DIV>&nbsp;</DIV><DIV>Best,</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 27 Aug 2008 05:32:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11984&amp;PID=40461&amp;title=solved-respond-to-context-menu#40461</guid>
  </item> 
 </channel>
</rss>