<?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 : Creating a Popup Menu</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Creating a Popup Menu]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 26 Apr 2026 00:22:43 +0000</pubDate>
  <lastBuildDate>Wed, 09 Jan 2008 05:56:27 +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=9128</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[Creating a Popup Menu : Can we getC++ code for the same?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9128&amp;PID=29997&amp;title=creating-a-popup-menu#29997</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3640">Ayub</a><br /><strong>Subject:</strong> 9128<br /><strong>Posted:</strong> 09 January 2008 at 5:56am<br /><br />Can we get&nbsp;C++ code for the same? ]]>
   </description>
   <pubDate>Wed, 09 Jan 2008 05:56:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9128&amp;PID=29997&amp;title=creating-a-popup-menu#29997</guid>
  </item> 
  <item>
   <title><![CDATA[Creating a Popup Menu : Once again, thanks very much for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9128&amp;PID=29549&amp;title=creating-a-popup-menu#29549</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9128<br /><strong>Posted:</strong> 18 December 2007 at 8:11am<br /><br />Once again, thanks very much for your help]]>
   </description>
   <pubDate>Tue, 18 Dec 2007 08:11:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9128&amp;PID=29549&amp;title=creating-a-popup-menu#29549</guid>
  </item> 
  <item>
   <title><![CDATA[Creating a Popup Menu : Yep,These lines add the keybindings:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9128&amp;PID=29545&amp;title=creating-a-popup-menu#29545</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 9128<br /><strong>Posted:</strong> 18 December 2007 at 6:01am<br /><br />Yep,<br><br>These lines add the keybindings:<br><br>&nbsp;&nbsp;&nbsp; CommandBars.KeyBindings.Add FCONTROL, Asc("N"), ID_FILE_NEW<br>&nbsp;&nbsp;&nbsp; CommandBars.KeyBindings.Add FCONTROL, Asc("O"), ID_FILE_OPEN<br>&nbsp;&nbsp;&nbsp; CommandBars.KeyBindings.Add FCONTROL, Asc("S"), ID_FILE_SAVE<br>&nbsp;&nbsp;&nbsp; CommandBars.KeyBindings.Add FCONTROL, Asc("X"), ID_EDIT_CUT<br>&nbsp;&nbsp;&nbsp; CommandBars.KeyBindings.Add FCONTROL, Asc("C"), ID_EDIT_COPY<br>&nbsp;&nbsp;&nbsp; CommandBars.KeyBindings.Add FCONTROL, Asc("V"), ID_EDIT_PASTE<br><br>And these constants define the values for special keys:<br><br>Public Const FSHIFT = 4<br>Public Const FCONTROL = 8<br>Public Const FALT = 16<br><br>Public Const VK_BACK = &amp;H8<br>Public Const VK_TAB = &amp;H9<br>Public Const VK_ESCAPE = &amp;H1B<br>Public Const VK_SPACE = &amp;H20<br>Public Const VK_PRIOR = &amp;H21<br>Public Const VK_NEXT = &amp;H22<br>Public Const VK_END = &amp;H23<br>Public Const VK_HOME = &amp;H24<br>Public Const VK_LEFT = &amp;H25<br>Public Const VK_UP = &amp;H26<br>Public Const VK_RIGHT = &amp;H27<br>Public Const VK_DOWN = &amp;H28<br>Public Const VK_INSERT = &amp;H2D<br>Public Const VK_DELETE = &amp;H2E<br>Public Const VK_MULTIPLY = &amp;H6A<br>Public Const VK_ADD = &amp;H6B<br>Public Const VK_SEPARATOR = &amp;H6C<br>Public Const VK_SUBTRACT = &amp;H6D<br>Public Const VK_DECIMAL = &amp;H6E<br>Public Const VK_DIVIDE = &amp;H6F<br>Public Const VK_F1 = &amp;H70<br>Public Const VK_F2 = &amp;H71<br>Public Const VK_F3 = &amp;H72<br>Public Const VK_F4 = &amp;H73<br>Public Const VK_F5 = &amp;H74<br>Public Const VK_F6 = &amp;H75<br>Public Const VK_F7 = &amp;H76<br>Public Const VK_F8 = &amp;H77<br>Public Const VK_F9 = &amp;H78<br>Public Const VK_F10 = &amp;H79<br>Public Const VK_F11 = &amp;H7A<br>Public Const VK_F12 = &amp;H7B]]>
   </description>
   <pubDate>Tue, 18 Dec 2007 06:01:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9128&amp;PID=29545&amp;title=creating-a-popup-menu#29545</guid>
  </item> 
  <item>
   <title><![CDATA[Creating a Popup Menu : Fantastic!. This is EXACTLY what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9128&amp;PID=29542&amp;title=creating-a-popup-menu#29542</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9128<br /><strong>Posted:</strong> 18 December 2007 at 5:46am<br /><br />Fantastic!. This is EXACTLY what I needed. BTW, I do not have the RibbonSample. Could you please include a few lines of code that show how to use keybindings (hotkeys) with&nbsp; PopupMenu?<br><br>MTIA<br>]]>
   </description>
   <pubDate>Tue, 18 Dec 2007 05:46:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9128&amp;PID=29542&amp;title=creating-a-popup-menu#29542</guid>
  </item> 
  <item>
   <title><![CDATA[Creating a Popup Menu :  Here&amp;#039;s a basic popup menu:Dim...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9128&amp;PID=29532&amp;title=creating-a-popup-menu#29532</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2113">ijwelch</a><br /><strong>Subject:</strong> 9128<br /><strong>Posted:</strong> 17 December 2007 at 9:36pm<br /><br /><font color="#006633">Here's a basic popup menu:<br><br>Dim oBar As XtremeCommandBars.CommandBar<br>Dim oControl As XtremeCommandBars.CommandBarControl<br>Dim oPopup As XtremeCommandBars.CommandBarPopup<br><br>Set oBar = CommandBars1.Add("Popup Toolbar Name", xtpBarPopup)<br>With oBar.Controls<br>&nbsp;&nbsp;&nbsp; 'standard items<br>&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_ITEM1, "Item1"<br>&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_ITEM2, "Item2"<br>&nbsp;&nbsp;&nbsp; .Add(xtpControlButton, ID_ITEM3, "Item3").BeginGroup = True<br>&nbsp;&nbsp;&nbsp; 'checkbox<br>&nbsp;&nbsp;&nbsp; Set oControl = .Add(xtpControlCheckBox, ID_ITEM4, "Checkbox")<br>&nbsp;&nbsp;&nbsp; oControl.Checked = True<br>&nbsp;&nbsp;&nbsp; oControl.BeginGroup = True<br>&nbsp;&nbsp;&nbsp; 'sub-menu<br>&nbsp;&nbsp;&nbsp; Set oPopup = .Add(xtpControlPopup, ID_ITEM5, "Sub Menu")<br>&nbsp;&nbsp;&nbsp; With oPopup.CommandBar.Controls<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_SUBITEM1, "SubItem1"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Add xtpControlButton, ID_SUBITEM2, "SubItem2"<br>&nbsp;&nbsp;&nbsp; End With<br>End With<br>'show it<br>oBar.ShowPopup</font><br><br>Keybindings are included in the VB RibbonSample (in Form_Load event).<br><br>]]>
   </description>
   <pubDate>Mon, 17 Dec 2007 21:36:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9128&amp;PID=29532&amp;title=creating-a-popup-menu#29532</guid>
  </item> 
  <item>
   <title><![CDATA[Creating a Popup Menu : I want to create a popup menu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9128&amp;PID=29531&amp;title=creating-a-popup-menu#29531</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3590">Neil</a><br /><strong>Subject:</strong> 9128<br /><strong>Posted:</strong> 17 December 2007 at 7:59pm<br /><br />I want to create a popup menu (through code - NOT the designer), and&nbsp; (if possible) to be able to add KeyBindings (i.e. hot keys) to the pop up menus.<br><br><br>1). I can see a PopupControl in the documentation, but I cannot locate it in the object hierarchy - also,&nbsp; the VB6 object browser cannot locate it (search for PopupControl fails to find it) - so it is not clear how to create/use this control<br><br>2). I am aware (after searching this forum's archives), that there is a VB6 sample that apparently shows how to do the above - (atleast - how to show popups). However, I have not been able to find an example that shows popup creation in code (i.e. without the help of teh designer).<br><br>Anyone knows how to do this?<br>]]>
   </description>
   <pubDate>Mon, 17 Dec 2007 19:59:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9128&amp;PID=29531&amp;title=creating-a-popup-menu#29531</guid>
  </item> 
 </channel>
</rss>