<?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 : Launch a popup menu</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Launch a popup menu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:26:44 +0000</pubDate>
  <lastBuildDate>Tue, 24 Feb 2004 14:00:47 +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=472</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[Launch a popup menu : You do not need an imagelist control....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=472&amp;PID=1149&amp;title=launch-a-popup-menu#1149</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 472<br /><strong>Posted:</strong> 24 February 2004 at 2:00pm<br /><br />You do not need an imagelist control.&nbsp; All of the popup menucontrols should have a corresponding control somwhere in the toolbar ormenubar.&nbsp; So all of the icons will already be added in thedesigner.&nbsp; Just make sure that you assign the same ID to the popupcontrols as you did to the controls in the menu and toolbar.&nbsp; Thiswill make them have the same Icon and perform the same actions. &nbsp; <br><br>Did this help?<img src="http://forum.codejock.com/smileys/smiley5.gif" border="0"><br>]]>
   </description>
   <pubDate>Tue, 24 Feb 2004 14:00:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=472&amp;PID=1149&amp;title=launch-a-popup-menu#1149</guid>
  </item> 
  <item>
   <title><![CDATA[Launch a popup menu : Ok thanks, but how to change icons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=472&amp;PID=1148&amp;title=launch-a-popup-menu#1148</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=381">amstel</a><br /><strong>Subject:</strong> 472<br /><strong>Posted:</strong> 24 February 2004 at 1:51pm<br /><br />Ok thanks, but how to change icons ? Icons from this sample is not in a imagelist control ?]]>
   </description>
   <pubDate>Tue, 24 Feb 2004 13:51:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=472&amp;PID=1148&amp;title=launch-a-popup-menu#1148</guid>
  </item> 
  <item>
   <title><![CDATA[Launch a popup menu : OK, xtpControlPopup is a button...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=472&amp;PID=1145&amp;title=launch-a-popup-menu#1145</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 472<br /><strong>Posted:</strong> 24 February 2004 at 1:18pm<br /><br />OK, xtpControlPopup is a button control, not a command bar.&nbsp; Tohave a popup command bar it must be type xtpBarPopup.&nbsp; You can notcreate a popup command bar in the designer, it must be done viacode.&nbsp; I will assume you have a SDI application with a richtextbox control called rtfText.&nbsp; To create and add a popup menu toyour code add the following code to the rtf_MouseUp event procedure.<br><br>Private Sub rtfText_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)<br>&nbsp;&nbsp;&nbsp; If (Button = 2) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Popup = CommandBars.Add("Popup", xtpBarPopup)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With Popup.Controls<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; .Add xtpControlButton, ID_FILE_NEW, "&amp;New", -1, False<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; .Add xtpControlButton, ID_FILE_OPEN, "&amp;Open", -1, False<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; .Add xtpControlButton, ID_FILE_SAVE, "&amp;Save", -1, False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; SetControl = .Add(xtpControlButton, ID_FILE_PRINT, "&amp;Print", -1, False)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; Control.BeginGroup = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; SetControl = .Add(xtpControlButton, ID_EDIT_CUT, "Cu&amp;t", -1, False)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; Control.BeginGroup = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; .Add xtpControlButton, ID_EDIT_COPY, "&amp;Copy", -1, False<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; .Add xtpControlButton, ID_EDIT_PASTE, "&amp;Paste", -1, False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Popup.ShowPopup<br>&nbsp;&nbsp;&nbsp; End If <br><br>This is illustrated in the SDI and MDI command Bars examples. <img src="http://forum.codejock.com/smileys/smiley17.gif" border="0"><br>]]>
   </description>
   <pubDate>Tue, 24 Feb 2004 13:18:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=472&amp;PID=1145&amp;title=launch-a-popup-menu#1145</guid>
  </item> 
  <item>
   <title><![CDATA[Launch a popup menu : I create a menu in designer (xtpControlPopup) I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=472&amp;PID=1143&amp;title=launch-a-popup-menu#1143</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=381">amstel</a><br /><strong>Subject:</strong> 472<br /><strong>Posted:</strong> 24 February 2004 at 12:38pm<br /><br /><P>I create a menu in designer (xtpControlPopup)</P><P>I want display this menu at runtime in a popupmenu when the user right-clic on a label text.</P>]]>
   </description>
   <pubDate>Tue, 24 Feb 2004 12:38:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=472&amp;PID=1143&amp;title=launch-a-popup-menu#1143</guid>
  </item> 
  <item>
   <title><![CDATA[Launch a popup menu : Could you be more specific? Is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=472&amp;PID=1141&amp;title=launch-a-popup-menu#1141</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 472<br /><strong>Posted:</strong> 24 February 2004 at 12:13pm<br /><br />Could you be more specific?&nbsp; Is your command barxtpBarPopup?&nbsp; I wasn't aware that you could create a popup menu inthe designer. &nbsp; When should the popupmenu be displayed?&nbsp; Whenthe user righ-clicks the document?&nbsp; I can show you how to add apopup menu via code when the user right clicks the document.&nbsp;&nbsp;]]>
   </description>
   <pubDate>Tue, 24 Feb 2004 12:13:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=472&amp;PID=1141&amp;title=launch-a-popup-menu#1141</guid>
  </item> 
  <item>
   <title><![CDATA[Launch a popup menu : How to launch at runtime a popupmenu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=472&amp;PID=1140&amp;title=launch-a-popup-menu#1140</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=381">amstel</a><br /><strong>Subject:</strong> 472<br /><strong>Posted:</strong> 24 February 2004 at 11:55am<br /><br /><P>How to launch at runtime a popupmenu ? The menu is created with Command Bar Designer.</P><P>Thanks for your help</P><P>J-Marc From Paris, France</P>]]>
   </description>
   <pubDate>Tue, 24 Feb 2004 11:55:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=472&amp;PID=1140&amp;title=launch-a-popup-menu#1140</guid>
  </item> 
 </channel>
</rss>