<?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 : Displaying PopUp menu from &#111;ne commandbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Displaying PopUp menu from &#111;ne commandbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 15:31:45 +0000</pubDate>
  <lastBuildDate>Mon, 24 Jan 2005 16:26:03 +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=1697</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[Displaying PopUp menu from &#111;ne commandbar : Thanks SuperMario, that&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1697&amp;PID=4824&amp;title=displaying-popup-menu-from-one-commandbar#4824</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=280">ianp</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 24 January 2005 at 4:26pm<br /><br /><P>Thanks SuperMario, that's exactly what I'm after...</P><P><table width="99%"><tr><td><pre class="BBcode"><BR>Dim xcbSourcePop As CommandBarPopup, xcbNewPop As CommandBarPopup, xcbDestBar As CommandBar<BR>' Assign variables<BR>Set xcbSourcePop =  Form1.CommandBars1.ActiveMenuBar.FindControl(xtpControlPopup , 12)<BR>Set xcbDestBar = Me.CommandBars2.ActiveMenuBar<BR>' Create New ControlPopup<BR>Set xcbNewPop = Me.CommandBars2.ActiveMenuBar.Controls.Add(xtpControlPopup, Me.hWnd, "test " &amp; Me.hWnd)<BR>' Copy Controls from Source ControlPopup CommandBar<BR>For Each xcbSourceCtrl In xcbSourcePop.CommandBar.Controls<BR>&nbsp;&nbsp;&nbsp; xcbSourceCtrl.Copy xcbNewPop.CommandBar<BR>Next<BR></pre></td></tr></table></P><P>Oddly, if you copy the controlpopup from form1, to&nbsp;form2, all the commandbar.controls are all disabled???</P><P><table width="99%"><tr><td><pre class="BBcode"><BR>Dim xcbSourcePop As CommandBarPopup, xcbNewPop As CommandBarPopup, xcbDestBar As CommandBar<BR>' Assign variables<BR>Set xcbSourcePop =  Form1.CommandBars1.ActiveMenuBar.FindControl(xtpControlPopup , ID_POP_TEST)<BR>Set xcbDestBar = Form2.CommandBars2.ActiveMenuBar<BR>' Copy ControlPopup<BR>Set xcbNewPop = xcbSourcePop.Copy(xcbDestBar)<BR></pre></td></tr></table></P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Mon, 24 Jan 2005 16:26:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1697&amp;PID=4824&amp;title=displaying-popup-menu-from-one-commandbar#4824</guid>
  </item> 
  <item>
   <title><![CDATA[Displaying PopUp menu from &#111;ne commandbar : I&amp;#039;m thinking you can use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1697&amp;PID=4822&amp;title=displaying-popup-menu-from-one-commandbar#4822</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 24 January 2005 at 9:28am<br /><br />I'm thinking you can use the Copy method to copy from one toanother.&nbsp; But I have not tried this myself, so I can't say forsure.&nbsp; <br><br>I'm thinking something like this:<br><br>Private Sub rtfText_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If (Button = 2) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If CommandBars.DesignerControls Is Nothing Then Exit Sub<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim Control As CommandBarControl, ContextControl As CommandBarControl<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim Popup As CommandBar<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Control = frmForm1.CommandBars.DesignerControls.Find(, ID_CONTEXT_MENU)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Control Is Nothing Then Exit Sub<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Popup = frmForm2.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;&nbs p;&nbsp; ContextControl.Copy Popup<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Popup.ShowPopup<br>&nbsp;&nbsp;&nbsp; End If<br>End Sub<br>]]>
   </description>
   <pubDate>Mon, 24 Jan 2005 09:28:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1697&amp;PID=4822&amp;title=displaying-popup-menu-from-one-commandbar#4822</guid>
  </item> 
  <item>
   <title><![CDATA[Displaying PopUp menu from &#111;ne commandbar : I have an SDI form which contains...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1697&amp;PID=4821&amp;title=displaying-popup-menu-from-one-commandbar#4821</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=280">ianp</a><br /><strong>Subject:</strong> 1697<br /><strong>Posted:</strong> 24 January 2005 at 9:23am<br /><br /><P>I have an SDI form which contains a commandbar control and a docking pane.</P><P>The docking pane loads a form which contains a second commandbar control.</P><P>Each commandbar control contains a control of type xtpControlPopup.</P><P>On the SDI form, the PopUp has several controls added to its commandbar.controls collection</P><P>On the DockingPane form, the PopUp has no controls added to its commandbar.controls collection. However, it needs to display the same controls as the SDI PopUp.</P><P>Is is possible to re-use the SDI PopUp on the Docking Pane? Or do I have to add the controls to both forms???</P>]]>
   </description>
   <pubDate>Mon, 24 Jan 2005 09:23:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1697&amp;PID=4821&amp;title=displaying-popup-menu-from-one-commandbar#4821</guid>
  </item> 
 </channel>
</rss>