<?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 : PushButton DropDown</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : PushButton DropDown]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:28:10 +0000</pubDate>
  <lastBuildDate>Tue, 24 Aug 2010 03:42:39 +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=17108</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[PushButton DropDown : moe188, not that no :)jbpro, many...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17108&amp;PID=59883&amp;title=pushbutton-dropdown#59883</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6296">Hemesh</a><br /><strong>Subject:</strong> 17108<br /><strong>Posted:</strong> 24 August 2010 at 3:42am<br /><br /><b>moe188</b>, not that no :)<br><br><b>jbpro</b>, many thanks, that's exactly what I was looking for! That should hopefully show me a dropdown now that is unicode compliant and show me those russian character sets properly :)<br>]]>
   </description>
   <pubDate>Tue, 24 Aug 2010 03:42:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17108&amp;PID=59883&amp;title=pushbutton-dropdown#59883</guid>
  </item> 
  <item>
   <title><![CDATA[PushButton DropDown : Try this on a form with a CommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17108&amp;PID=59835&amp;title=pushbutton-dropdown#59835</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17108<br /><strong>Posted:</strong> 19 August 2010 at 11:25am<br /><br />Try this on a form with a CommandBars control and a PushButton with the Style set to xtpButtonDropDown:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Option Explicit<br><br>Private Type POINTAPI<br>&nbsp;&nbsp; x As Long<br>&nbsp;&nbsp; y As Long<br>End Type<br><br>Private Declare Function ClientToScreen Lib "user32.dll" (ByVal hwnd As Long, ByRef lpPoint As POINTAPI) As Long<br><br><br>Private Sub Form_Load()<br>&nbsp;&nbsp; ' Create a sample command bar, attached to the ContextMenus collection<br>&nbsp;&nbsp; With Me.CommandBars1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .DeleteAll<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; With .ContextMenus.Add(100, "Test")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Controls.Add xtpControlButton, 101, "Test"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Controls.Add xtpControlButton, 102, "Test2"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Controls.Add xtpControlButton, 103, "Test3"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp; End With<br>End Sub<br><br>Private Sub PushButton1_DropDown()<br>&nbsp;&nbsp; Dim lt_Pt As POINTAPI<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; ' Get position for popup menu based on button position &amp; height<br>&nbsp;&nbsp; lt_Pt.x = Me.PushButton1.Left<br>&nbsp;&nbsp; lt_Pt.y = Me.PushButton1.Top + Me.PushButton1.Height<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; ' Convert popup menu position to pixels<br>&nbsp;&nbsp; If Me.ScaleMode &lt;&gt; vbUser Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lt_Pt.x = Me.ScaleX(lt_Pt.x, Me.ScaleMode, vbPixels)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lt_Pt.y = Me.ScaleY(lt_Pt.y, Me.ScaleMode, vbPixels)<br>&nbsp;&nbsp; End If<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; ' Convert popup menu position to screen coordinates<br>&nbsp;&nbsp; ClientToScreen Me.hwnd, lt_Pt<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; ' Convert popup menu position back to client scalemode<br>&nbsp;&nbsp; If Me.ScaleMode &lt;&gt; vbUser Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lt_Pt.x = Me.ScaleX(lt_Pt.x, vbPixels, Me.ScaleMode)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lt_Pt.y = Me.ScaleY(lt_Pt.y, vbPixels, Me.ScaleMode)<br>&nbsp;&nbsp; End If<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; ' Show the popup menu. ContextMenus collection is 1-based<br>&nbsp;&nbsp; Me.CommandBars1.ContextMenus(1).ShowPopup TPM_RETURNCMD, lt_Pt.x, lt_Pt.y<br>End Sub<br></pre></td></tr></table><br>]]>
   </description>
   <pubDate>Thu, 19 Aug 2010 11:25:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17108&amp;PID=59835&amp;title=pushbutton-dropdown#59835</guid>
  </item> 
  <item>
   <title><![CDATA[PushButton DropDown : hi, I am not sure if that what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17108&amp;PID=59834&amp;title=pushbutton-dropdown#59834</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1884">moe188</a><br /><strong>Subject:</strong> 17108<br /><strong>Posted:</strong> 19 August 2010 at 11:21am<br /><br />hi,<DIV>I am not sure if that what you are looking for:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Dim MenuBar As CommandBar<BR>&nbsp;&nbsp;&nbsp; Dim ControlColorPopup As CommandBarPopup<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Set MenuBar = CommandBars1.Add("MenuBar", xtpBarTop)<BR>&nbsp;&nbsp;&nbsp; With MenuBar.Controls<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set ControlColorPopup = .Add(xtpControlSplitButtonPopup, ID_MENU, "Menu")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_MENU1, "SubMenu 1"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_MENU2, "SubMenu 2"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ControlColorPopup.CommandBar.Controls.Add xtpControlButton, ID_MENU3, "Submenu 3"<BR>&nbsp;&nbsp;&nbsp; End With<BR></DIV><DIV>good luck</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 19 Aug 2010 11:21:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17108&amp;PID=59834&amp;title=pushbutton-dropdown#59834</guid>
  </item> 
  <item>
   <title><![CDATA[PushButton DropDown : Can no one help with this one?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17108&amp;PID=59830&amp;title=pushbutton-dropdown#59830</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6296">Hemesh</a><br /><strong>Subject:</strong> 17108<br /><strong>Posted:</strong> 19 August 2010 at 9:15am<br /><br />Can no one help with this one? :(]]>
   </description>
   <pubDate>Thu, 19 Aug 2010 09:15:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17108&amp;PID=59830&amp;title=pushbutton-dropdown#59830</guid>
  </item> 
  <item>
   <title><![CDATA[PushButton DropDown : Hi Guys,Is it possible to show...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17108&amp;PID=59761&amp;title=pushbutton-dropdown#59761</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6296">Hemesh</a><br /><strong>Subject:</strong> 17108<br /><strong>Posted:</strong> 13 August 2010 at 8:42am<br /><br />Hi Guys,<br><br>Is it possible to show a dropdown menu from a commandbar (or from some other control) to show a menu below the button rather than the VB Menus? The reason for this is that I want to make sure the control supports unicode and the VB menu system doesn't!<br><br>I tried to use the ShowPopup() feature for the command bars but unfortunatly nothing happened, so i might be shooting a lost cause with that...<br>]]>
   </description>
   <pubDate>Fri, 13 Aug 2010 08:42:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17108&amp;PID=59761&amp;title=pushbutton-dropdown#59761</guid>
  </item> 
 </channel>
</rss>