<?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 : Context Menu positions</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Context Menu positions]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 06 Jun 2026 13:19:56 +0000</pubDate>
  <lastBuildDate>Wed, 20 Jul 2011 07:38:35 +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=18692</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[Context Menu positions : I&amp;#039;ve managed to find my work...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18692&amp;PID=65377&amp;title=context-menu-positions#65377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6296">Hemesh</a><br /><strong>Subject:</strong> 18692<br /><strong>Posted:</strong> 20 July 2011 at 7:38am<br /><br />I've managed to find my work around by using GetWindowRect() on the Usercontrols' Hwnd to position it in the correct place :)]]>
   </description>
   <pubDate>Wed, 20 Jul 2011 07:38:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18692&amp;PID=65377&amp;title=context-menu-positions#65377</guid>
  </item> 
  <item>
   <title><![CDATA[Context Menu positions : Hi all,I&amp;#039;ve got a UserControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18692&amp;PID=65369&amp;title=context-menu-positions#65369</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6296">Hemesh</a><br /><strong>Subject:</strong> 18692<br /><strong>Posted:</strong> 20 July 2011 at 4:32am<br /><br />Hi all,<div><br></div><div><span ="Apple-style-span">I've got a UserControl which is used to show our own Popup menu's within certain screens via either right-click or if placed underneath a button, will show one there. It use to work via a standard inbuilt VB6 Popup Menu as CJ Skinned this nicely and it pops up based on the position within the&nbsp;</span>UserControl&nbsp;<span ="Apple-style-span">top left corner.</span></div><div><br></div><div>We recently found an issue with the SkinFramework which skinned the menu nicely, but if the popup menu had a large number of items, the scrolling feature of the menu is lost!</div><div><br></div><div>I thought of a quick work around (which introduced nicer skinning too) which was to use the CommandBars Context Menus and use a popup from there. The issue I now have though, is the X and Y co-ordinates of ShowPopup method actually are for the position on the screen, rather than within the UserControl's top left corner like the default VB6 one. This is causing me a real pain when trying to show the popup in the correct position.</div><div><br></div><div>Just in case&nbsp;I'm&nbsp;asked why am I still using this UserControl... simply because due to the vast amount of places it's used and projects it's shared, it's best to keep it here.</div><div><br></div><div>So... my question is, is there any way I can find the&nbsp;UserControl's&nbsp;<span ="Apple-style-span">position on the screen, or perhaps even get the scrolling working on the old VB6 Menu control when it's skinned?</span></div><div><span ="Apple-style-span"><br></span></div><div><span ="Apple-style-span">Cheers :)</span></div>]]>
   </description>
   <pubDate>Wed, 20 Jul 2011 04:32:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18692&amp;PID=65369&amp;title=context-menu-positions#65369</guid>
  </item> 
 </channel>
</rss>