<?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 : PopupMenu Alignment</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : PopupMenu Alignment]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 01:42:26 +0000</pubDate>
  <lastBuildDate>Sat, 13 Mar 2004 14:20:17 +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=514</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[PopupMenu Alignment : SuperMario is right. I assumed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1334&amp;title=popupmenu-alignment#1334</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=229">robs</a><br /><strong>Subject:</strong> 514<br /><strong>Posted:</strong> 13 March 2004 at 2:20pm<br /><br /><P>SuperMario is right. I assumed that the x and y would come from a mouse event (as they normally are when showing a popup). I tried a bunch of workarrounds, but came up short so far.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sat, 13 Mar 2004 14:20:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1334&amp;title=popupmenu-alignment#1334</guid>
  </item> 
  <item>
   <title><![CDATA[PopupMenu Alignment : It appears that this method will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1333&amp;title=popupmenu-alignment#1333</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 514<br /><strong>Posted:</strong> 13 March 2004 at 1:47pm<br /><br />It appears that this method will only accept constant values asparameters.&nbsp; Any time you pass in a value generated at runtime itwill use the x and y coords of the mouse.&nbsp; I did several tests andI have found no way to make this work.&nbsp; It only appears to work inthe MouseDown event because you expect the popup to be displayed whereyou clicked with the x and y passed to the event. But the values passedto the event do nothing in the showpopup method. &nbsp; Try changingthe value of x and y with a valuestored in a variable, if you hard code it like x=100, that will workbut that is no good at runtime.&nbsp; But x=me.width will not workbecause it is not a constant. &nbsp; I can think of a couple uglyworkarounds, but it would be nice to pass in a variable as x and y.<span style="font-size:10px"><br /><br />Edited by SuperMario</span>]]>
   </description>
   <pubDate>Sat, 13 Mar 2004 13:47:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1333&amp;title=popupmenu-alignment#1333</guid>
  </item> 
  <item>
   <title><![CDATA[PopupMenu Alignment : amstel: Paste this code in the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1332&amp;title=popupmenu-alignment#1332</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=229">robs</a><br /><strong>Subject:</strong> 514<br /><strong>Posted:</strong> 13 March 2004 at 11:52am<br /><br /><P>amstel:</P><P>Paste this code in the DynamicPopus sample. Does it do what you would expect?</P><P>Private Sub frameChild_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)<BR>&nbsp; Dim p As XtremeCommandBars.CommandBar<BR>&nbsp; Set p = CommandBars.Add("Test", xtpBarPopup)<BR>&nbsp; p.Controls.Add xtpControlButton, ID_FILE_OPEN, "Test"<BR>&nbsp; <BR>&nbsp; p.ShowPopup , X, Y<BR>&nbsp; <BR>End Sub</P>]]>
   </description>
   <pubDate>Sat, 13 Mar 2004 11:52:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1332&amp;title=popupmenu-alignment#1332</guid>
  </item> 
  <item>
   <title><![CDATA[PopupMenu Alignment : It&amp;#039;s not possible ???? ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1331&amp;title=popupmenu-alignment#1331</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=381">amstel</a><br /><strong>Subject:</strong> 514<br /><strong>Posted:</strong> 13 March 2004 at 9:00am<br /><br />It's not possible ????]]>
   </description>
   <pubDate>Sat, 13 Mar 2004 09:00:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1331&amp;title=popupmenu-alignment#1331</guid>
  </item> 
  <item>
   <title><![CDATA[PopupMenu Alignment : Ok, but coordinates is coordonates...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1298&amp;title=popupmenu-alignment#1298</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=381">amstel</a><br /><strong>Subject:</strong> 514<br /><strong>Posted:</strong> 11 March 2004 at 11:06am<br /><br /><P>Ok, but coordinates is coordonates of the screen !!!</P><P>I want show a popupMenu in the form at coordinate of this form... It is possible ?</P><span style="font-size:10px"><br /><br />Edited by amstel</span>]]>
   </description>
   <pubDate>Thu, 11 Mar 2004 11:06:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1298&amp;title=popupmenu-alignment#1298</guid>
  </item> 
  <item>
   <title><![CDATA[PopupMenu Alignment : Also notethat supplying the x,y...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1291&amp;title=popupmenu-alignment#1291</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=229">robs</a><br /><strong>Subject:</strong> 514<br /><strong>Posted:</strong> 11 March 2004 at 8:04am<br /><br /><P>Also note&nbsp;that supplying the x,y is optional. If they are omitted, the popup will display at the current screen cursor position.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 11 Mar 2004 08:04:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1291&amp;title=popupmenu-alignment#1291</guid>
  </item> 
  <item>
   <title><![CDATA[PopupMenu Alignment : To center a popup menu on the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1290&amp;title=popupmenu-alignment#1290</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 514<br /><strong>Posted:</strong> 11 March 2004 at 7:27am<br /><br />To center a popup menu on the screen you just pass in the x and ycoordinantes of the screen to the CommandBars.ShowPopup method.&nbsp; Ibelieve this will only work for command bars of type xtpBarPopup, but Icould be wrong.<br><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"<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; .Add xtpControlButton, ID_FILE_OPEN, "&amp;Open"<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp; .Add xtpControlButton, ID_FILE_SAVE, "&amp;Save"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End With<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Popup.ShowPopup&nbsp; 100, 100 <br><br>Hope this helps.<img src="http://forum.codejock.com/smileys/smiley17.gif" border="0"><br>]]>
   </description>
   <pubDate>Thu, 11 Mar 2004 07:27:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1290&amp;title=popupmenu-alignment#1290</guid>
  </item> 
  <item>
   <title><![CDATA[PopupMenu Alignment : How to center a popupmenu in a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1289&amp;title=popupmenu-alignment#1289</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=381">amstel</a><br /><strong>Subject:</strong> 514<br /><strong>Posted:</strong> 11 March 2004 at 6:38am<br /><br /><P>How to center a popupmenu in a screen or align at a button ??</P><P>Thanks</P>]]>
   </description>
   <pubDate>Thu, 11 Mar 2004 06:38:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=514&amp;PID=1289&amp;title=popupmenu-alignment#1289</guid>
  </item> 
 </channel>
</rss>