<?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 : C# Tab C&#111;ntrol HitTest</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : C# Tab C&#111;ntrol HitTest]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 27 May 2026 22:13:55 +0000</pubDate>
  <lastBuildDate>Thu, 27 Oct 2005 19:19: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=3118</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[C# Tab C&#111;ntrol HitTest : I&amp;#039;m trying to detect the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3118&amp;PID=9315&amp;title=c-tab-control-hittest#9315</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1035">pchui</a><br /><strong>Subject:</strong> 3118<br /><strong>Posted:</strong> 27 October 2005 at 7:19pm<br /><br /><P>I'm trying to detect the TabControlItem clicked on by handling the TabControl.MouseUpEvent and then checking TabControl.HitTest(). It never succeeds because it appears that there needs to be a conversion from the MouseUpEvent x,y units to the one that HitTest() uses.</P><P>In the TabManager sample, I added the event handler</P><P><FONT size=1>private void TabControl_MouseUpEvent(object sender, AxXtremeSuiteControls._DTabControlEvents_MouseUpEvent e)<BR>{<BR>&nbsp;&nbsp;&nbsp; XtremeSuiteControls.TabControlItem item = TabControl.HitTest(e.x, e.y);<BR>&nbsp;&nbsp;&nbsp; if (item != null)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; &nbsp;...<BR>&nbsp;&nbsp;&nbsp; }<BR>}<BR></FONT><FONT size=1></FONT></P><P><FONT size=1>HitTest() always return null here. The e.y value from the MouseUpEvent is in the range of 0-16. </FONT></P><P><FONT size=1>I tried the same code in VB, and it works. But the MouseUpEvent in VB returns y values of 0-300. </FONT></P><P><FONT size=1>My tests with C++&nbsp;show the same problem as C#. </FONT></P><P><FONT size=1>&nbsp;</P></FONT>]]>
   </description>
   <pubDate>Thu, 27 Oct 2005 19:19:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3118&amp;PID=9315&amp;title=c-tab-control-hittest#9315</guid>
  </item> 
 </channel>
</rss>