<?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 : Context Menu on MDI form control</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Context Menu on MDI form control]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 21:24:19 +0000</pubDate>
  <lastBuildDate>Tue, 28 Aug 2007 13:28:45 +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=7887</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[Context Menu on MDI form control : Hi! Many thanks jp - much appreciated....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7887&amp;PID=25418&amp;title=context-menu-on-mdi-form-control#25418</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3239">sanddevil</a><br /><strong>Subject:</strong> 7887<br /><strong>Posted:</strong> 28 August 2007 at 1:28pm<br /><br />Hi! Many thanks jp - much appreciated. My C++ code actually looks the same as yours but a problem persists. When I call CommandBars.Add, the returned CommandBar popup is a null pointer&nbsp; - which suggests to me the Add call is not working. <DIV>&nbsp;</DIV><DIV>A quick look at the debugger confirms this - the count is set to zero controls so Add definitely failed.&nbsp; <img src="https://forum.codejock.com/smileys/smiley19.gif" border="0">&nbsp;I don't have a clue why. Any ideas?</DIV><DIV>&nbsp;</DIV><DIV>Cheers!</DIV>]]>
   </description>
   <pubDate>Tue, 28 Aug 2007 13:28:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7887&amp;PID=25418&amp;title=context-menu-on-mdi-form-control#25418</guid>
  </item> 
  <item>
   <title><![CDATA[Context Menu on MDI form control : Here is some code that is used...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7887&amp;PID=25416&amp;title=context-menu-on-mdi-form-control#25416</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1446">apuhjee</a><br /><strong>Subject:</strong> 7887<br /><strong>Posted:</strong> 28 August 2007 at 11:42am<br /><br /><P>Here is some code that is used to close tab workspace tabs.&nbsp; Other context menus will look similar.</P><DIV>Cheers ~ jp</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=2></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2>private</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> tabWorkspace_RClick(XtremeCommandBars.</FONT><FONT color=#2b91af size=2>TabControlItem</FONT><FONT size=2> Item)</FONT><FONT size=2></DIV><DIV><DIV>{</DIV><DIV></FONT><FONT color=#0000ff size=2>&nbsp;&nbsp;&nbsp;&nbsp; if</FONT><FONT size=2> (Item != </FONT><FONT color=#0000ff size=2>null</FONT><FONT size=2>)</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp; {</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tabCurrent = Item;</FONT></DIV><DIV><FONT color=#2b91af size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandBar</FONT><FONT size=2> popup = CommandBars.Add(</FONT><FONT color=#a31515 size=2>"Context Menu"</FONT><FONT size=2>, XtremeCommandBars.</FONT><FONT color=#2b91af size=2>XTPBarPosition</FONT><FONT size=2>.xtpBarPopup);</FONT></DIV><DIV><FONT color=#2b91af size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandBarControl</FONT><FONT size=2> control = popup.Controls.Add(</FONT><FONT color=#2b91af size=2>XTPControlType</FONT><FONT size=2>.xtpControlButton, </FONT><FONT color=#2b91af size=2>ID</FONT><FONT size=2>.ID_TAB_CLOSE, </FONT><FONT color=#a31515 size=2>"Close"</FONT><FONT size=2>, </FONT><FONT color=#0000ff size=2>null</FONT><FONT size=2>, </FONT><FONT color=#0000ff size=2>false</FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; popup.ShowPopup(XtremeCommandBars.</FONT><FONT color=#2b91af size=2>XTPTrackPopupFlags</FONT><FONT size=2>.TPM_RIGHTBUTTON, </FONT><FONT color=#0000ff size=2>null</FONT><FONT size=2>, </FONT><FONT color=#0000ff size=2>null</FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</FONT></DIV><DIV><FONT size=2>}</DIV></FONT></DIV>]]>
   </description>
   <pubDate>Tue, 28 Aug 2007 11:42:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7887&amp;PID=25416&amp;title=context-menu-on-mdi-form-control#25416</guid>
  </item> 
  <item>
   <title><![CDATA[Context Menu on MDI form control : Hi!! I&amp;#039;ve been trying to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7887&amp;PID=25408&amp;title=context-menu-on-mdi-form-control#25408</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3239">sanddevil</a><br /><strong>Subject:</strong> 7887<br /><strong>Posted:</strong> 28 August 2007 at 5:49am<br /><br />Hi!! I've been trying to create a context menu using CommandBars ActiveX for the last 2 days but with no success. I've had a look through the samples and I can't see anything to help me. I am new to the product and fairly new to C++.<DIV>&nbsp;</DIV><DIV>I would like to create a context menu on a control on an MDI client form. A right click would produce a menu list with the usual "Copy/Cut/Paste" plus a few others.</DIV><DIV>&nbsp;</DIV><DIV>Can anyone paste a few lines of code to give me a start please? All help gratefully received. I'm coding in C++.Net &nbsp;but could probably translate any snippets from C# or VB. </DIV><DIV>&nbsp;</DIV><DIV>Many thanks in advance.</DIV>]]>
   </description>
   <pubDate>Tue, 28 Aug 2007 05:49:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7887&amp;PID=25408&amp;title=context-menu-on-mdi-form-control#25408</guid>
  </item> 
 </channel>
</rss>