<?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] Multiple Custom Context menus</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : [SOLVED] Multiple Custom Context menus]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 15:31:23 +0000</pubDate>
  <lastBuildDate>Fri, 06 Mar 2009 02:47:30 +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=13481</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] Multiple Custom Context menus : Hi Ray,  Maybe you can use .Parameter...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46339&amp;title=solved-multiple-custom-context-menus#46339</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13481<br /><strong>Posted:</strong> 06 March 2009 at 2:47am<br /><br />Hi Ray,<DIV>&nbsp;</DIV><DIV>Maybe you can use .Parameter property&nbsp;of Commandbar button (Parameter property&nbsp;accepts&nbsp;Strings) </DIV><DIV>&nbsp;</DIV><DIV>Case "A"<BR>&nbsp;&nbsp;&nbsp; Set Popup = CommandBars.Add("PopupGroup", xtpBarPopup)<BR>&nbsp;&nbsp;&nbsp;&nbsp;Set Control = Popup.Controls.Add(xtpControlLabel, 1000, "URL's...")<BR>&nbsp;&nbsp;&nbsp;&nbsp;Set Control = Popup.Controls.Add(xtpControlButton, 1001, "Open &#091;" &amp; .href &amp; "&#093;")</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>Control.Parameter = .href</strong><BR>&nbsp;&nbsp;&nbsp;&nbsp;<STRIKE>rightClickedURL = .href<BR></STRIKE>&nbsp;&nbsp;&nbsp;&nbsp;Popup.ShowPopup<BR></DIV><DIV>&nbsp;</DIV><DIV>And in Execute event change:</DIV><DIV><DIV>&nbsp;</DIV><DIV>WB.Navigate rightClickURL</DIV><DIV>&nbsp;</DIV><DIV><strong>TO:</strong></DIV></DIV><DIV>&nbsp;</DIV><DIV>WB.Navigate Control.Parameter</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 06 Mar 2009 02:47:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46339&amp;title=solved-multiple-custom-context-menus#46339</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Multiple Custom Context menus : Alright, I get it now.Works Great,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46326&amp;title=solved-multiple-custom-context-menus#46326</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 13481<br /><strong>Posted:</strong> 05 March 2009 at 10:44pm<br /><br />Alright, I get it now.<br>Works Great, in all functions used within.<br>Thanks, I appreciate it.<br>]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 22:44:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46326&amp;title=solved-multiple-custom-context-menus#46326</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Multiple Custom Context menus : Hi Ray   Here is sample. I could...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46324&amp;title=solved-multiple-custom-context-menus#46324</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13481<br /><strong>Posted:</strong> 05 March 2009 at 5:54pm<br /><br />Hi Ray <DIV>&nbsp;</DIV><DIV>Here is sample. I could not upload zip file so here's code:</DIV><DIV>&nbsp;</DIV><DIV><DIV><table width="99%"><tr><td><pre class="BBcode"><BR>Private WithEvents Doc As HTMLDocument<BR>Dim rightClickedURL As Variant<BR>Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR>&nbsp;&nbsp;&nbsp; Select Case Control.id<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 1001<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WB.navigate rightClickedURL<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rightClickedURL = ""<BR>&nbsp;&nbsp;&nbsp; End Select<BR>End Sub<BR>Private Sub Form_Load()<BR>&nbsp;&nbsp;&nbsp; WB.WebBrowserContextMenu = False<BR>&nbsp;&nbsp;&nbsp; WB.navigate "<a href="https://forum.codejock.com/forum_posts.asp?TID=13523" target="_blank">https://forum.codejock.com/forum_posts.asp?TID=13523</A>"<BR>End Sub<BR>Private Sub Form_Resize()<BR>&nbsp;&nbsp;&nbsp; WB.Move 0, 0, Me.ScaleWidth, Me.ScaleHeight<BR>End Sub<BR>Private Sub WB_DocumentComplete(ByVal pDisp As Object, URL As Variant)<BR>&nbsp;&nbsp;&nbsp; Set Doc = WB.document<BR>End Sub<BR>Private Sub Doc_onmousedown()<BR>On Error Resume Next<BR>&nbsp;&nbsp;&nbsp; Dim Popup As CommandBar<BR>&nbsp;&nbsp;&nbsp; Dim Control As CommandBarControl<BR>&nbsp;&nbsp;&nbsp; Dim Controlpopup As CommandBarPopup<BR>&nbsp;&nbsp;&nbsp; Dim Controlbtn As CommandBarButton<BR>&nbsp;&nbsp;&nbsp; Dim Elem As IHTMLElement<BR>&nbsp;&nbsp;&nbsp; Set Elem = Doc.parentWindow.event.srcElement<BR>&nbsp;&nbsp;&nbsp; With Elem<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Doc.parentWindow.event.button = 2 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim msg As String<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select Case UCase$(.tagName)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case "A"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Popup = CommandBars.Add("PopupGroup", xtpBarPopup)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = Popup.Controls.Add(xtpControlLabel, 1000, "URL's...")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = Popup.Controls.Add(xtpControlButton, 1001, "Open &#091;" &amp; .href &amp; "&#093;")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rightClickedURL = .href<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Popup.ShowPopup<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End Select<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<BR>&nbsp; End With<BR>End Sub</DIV><DIV></pre></td></tr></table></DIV></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 17:54:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46324&amp;title=solved-multiple-custom-context-menus#46324</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Multiple Custom Context menus : Maybe you can also upload a Sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46323&amp;title=solved-multiple-custom-context-menus#46323</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 13481<br /><strong>Posted:</strong> 05 March 2009 at 5:04pm<br /><br />Maybe you can also upload a Sample Aaron, I would appreciate it. But, I will be sure to check back in about an Hour, I got a birthday party to go to. lol.]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 17:04:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46323&amp;title=solved-multiple-custom-context-menus#46323</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Multiple Custom Context menus : Alright, so I Dim as, or boolean,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46322&amp;title=solved-multiple-custom-context-menus#46322</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 13481<br /><strong>Posted:</strong> 05 March 2009 at 5:00pm<br /><br />Alright, so I Dim as, or boolean, or what?]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 17:00:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46322&amp;title=solved-multiple-custom-context-menus#46322</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Multiple Custom Context menus : Hi Ray,   I know what you mean....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46309&amp;title=solved-multiple-custom-context-menus#46309</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13481<br /><strong>Posted:</strong> 05 March 2009 at 11:32am<br /><br />Hi Ray, <DIV>&nbsp;</DIV><DIV>I know what you mean. I said: </DIV><DIV>&nbsp;</DIV><DIV>add:</DIV><DIV>&nbsp;</DIV><UL><LI>global variable rightClickedURL&nbsp;</LI></UL><DIV>&nbsp;</DIV><DIV>add:</DIV><UL><LI>rightClickedURL = .href in (see previous post)</LI></UL><DIV>&nbsp;</DIV><DIV>add Commandbars Execute event like this:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<BR>&nbsp;&nbsp;&nbsp; Select Case Control.id<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 1002 'this is ID of Open in another Tab in my&nbsp;sample project<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WB.navigate <strong>rightClickedURL </strong><FONT color=#0000ff>'this will navigate the right clicked URL</FONT><BR>&nbsp;&nbsp;&nbsp; End Select</DIV><DIV>End Sub</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Ready.......... <img src="https://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 11:32:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46309&amp;title=solved-multiple-custom-context-menus#46309</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Multiple Custom Context menus : Perhaps, you mean :  WB.Navigate...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46308&amp;title=solved-multiple-custom-context-menus#46308</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1646">dentor</a><br /><strong>Subject:</strong> 13481<br /><strong>Posted:</strong> 05 March 2009 at 11:20am<br /><br /><DIV>Perhaps, you mean :</DIV><DIV>&nbsp;</DIV><DIV><strong>WB.Navigate .href</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV>To make the Web Browser show the new web page ?</DIV><DIV>&nbsp;</DIV><DIV></DIV>]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 11:20:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46308&amp;title=solved-multiple-custom-context-menus#46308</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Multiple Custom Context menus : Aaron, this is interesting but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46306&amp;title=solved-multiple-custom-context-menus#46306</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 13481<br /><strong>Posted:</strong> 05 March 2009 at 11:09am<br /><br />Aaron, this is interesting but maybe your not understanding me.<br>Say you want to right click a link. When the menu comes up, you click "Open"<br>I need to be able to make the web browser navigate to the link that right clicked.<br>If that helps any.<br>]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 11:09:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46306&amp;title=solved-multiple-custom-context-menus#46306</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Multiple Custom Context menus : Hi Ray  Use .href inside:  With...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46305&amp;title=solved-multiple-custom-context-menus#46305</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 13481<br /><strong>Posted:</strong> 05 March 2009 at 11:04am<br /><br />Hi Ray<DIV>&nbsp;</DIV><DIV>Use .href inside:</DIV><DIV>&nbsp;</DIV><DIV>With Elem<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Doc.parentWindow.event.button = 2 Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim msg As String<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Select Case UCase$(.tagName)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case "A"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Popup = CommandBars.Add("PopupGroup", xtpBarPopup)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = Popup.Controls.Add(xtpControlLabel, 1000, "URL's...")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = Popup.Controls.Add(xtpControlButton, 1001, "Open")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = Popup.Controls.Add(xtpControlButton, 1002, "Open in new tab")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = Popup.Controls.Add(xtpControlButton, 1003, <strong><FONT color=#ff0000 size=3>.href</FONT></strong>)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rightClickedURL = <strong>.href</strong> 'or something like that...</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 11:04:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46305&amp;title=solved-multiple-custom-context-menus#46305</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED] Multiple Custom Context menus : Come on people, desperate need...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46304&amp;title=solved-multiple-custom-context-menus#46304</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4108">shipwreck</a><br /><strong>Subject:</strong> 13481<br /><strong>Posted:</strong> 05 March 2009 at 10:41am<br /><br />Come on people, desperate need of this!<br>Please help out. :p<br>]]>
   </description>
   <pubDate>Thu, 05 Mar 2009 10:41:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13481&amp;PID=46304&amp;title=solved-multiple-custom-context-menus#46304</guid>
  </item> 
 </channel>
</rss>