<?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 : tree mouse event</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : tree mouse event]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 09:41:56 +0000</pubDate>
  <lastBuildDate>Sat, 30 Apr 2011 21:19:12 +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=18295</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[tree mouse event :    I have a AxXtremeSuiteControls.AxTreeView...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18295&amp;PID=64127&amp;title=tree-mouse-event#64127</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6762">qodex</a><br /><strong>Subject:</strong> 18295<br /><strong>Posted:</strong> 30 April 2011 at 9:19pm<br /><br />I have a AxXtremeSuiteControls.AxTreeView with a mouse up event.&nbsp;Here''s the handler:<br><br>		<table width="99%"><tr><td><pre class="BBcode"><br>private void treePageDrawerView_MouseUpEvent(object sender, AxXtremeSuiteControls._DTreeViewEvents_MouseUpEvent e)<br>{<br>&nbsp; if (e.button == 2)&nbsp;// right click<br>&nbsp; {<br>&nbsp;&nbsp;&nbsp; System.Console.WriteLine("Mouse at " + e.x + " " + e.y);<br>&nbsp;&nbsp;&nbsp; XtremeSuiteControls.TreeViewNode node = treePageDrawerView.HitTest(e.x*15, e.y*15);<br>&nbsp;&nbsp;&nbsp; if (node != null)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.Console.WriteLine("Hit " + node.Text);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Point currentMousePosition = new Point(e.x, e.y);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pageDrawerPageContextMenuStrip.Show(treePageDrawerView, currentMousePosition);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp; }<br>}<br></pre></td></tr></table><br><br><br>I found this by trial and error, but to determine the tree node that was clicked on, I have to scale (multiply) x and y by 15.&nbsp;That seems to give very accurate results.&nbsp; Note that this is not a translation problem, that is, shifting x and x relative to say the origin of the tree control doesn't help.&nbsp; The context menu pops up at exactly the right place.<br><br>Am I missing something? Is this some kind of OLE thing? Is there documentation somewhere that explains what''s going on?<br><br>Thanks!<br>]]>
   </description>
   <pubDate>Sat, 30 Apr 2011 21:19:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18295&amp;PID=64127&amp;title=tree-mouse-event#64127</guid>
  </item> 
 </channel>
</rss>