<?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 : [SOLVED]TabControl HitTest</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : [SOLVED]TabControl HitTest]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:37:23 +0000</pubDate>
  <lastBuildDate>Thu, 06 Oct 2016 07:03:07 +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=23085</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[[SOLVED]TabControl HitTest : Hello, Change you please code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23085&amp;PID=75186&amp;title=solvedtabcontrol-hittest#75186</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 23085<br /><strong>Posted:</strong> 06 October 2016 at 7:03am<br /><br />Hello, <br><br>Change you please code as below<br>Private Sub TabControl1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)<br><br>Regards,<br>Artem Gontarenko<br>]]>
   </description>
   <pubDate>Thu, 06 Oct 2016 07:03:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23085&amp;PID=75186&amp;title=solvedtabcontrol-hittest#75186</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]TabControl HitTest : Hi there,I have strange result...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23085&amp;PID=74931&amp;title=solvedtabcontrol-hittest#74931</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9068">alif98</a><br /><strong>Subject:</strong> 23085<br /><strong>Posted:</strong> 03 August 2016 at 9:28am<br /><br />Hi there,<div><br></div><div>I have strange result with TabControl HitTest function:</div><div><br></div><div>It seems okay with first tabitem</div><div><img src="uploads/9068/2016-08-03_15-19-08.png" height="227" width="477" border="0" /></div><div><br></div><div>It started to be off on second item</div><div><img src="uploads/9068/2016-08-03_15-19-20.png" height="227" width="477" border="0" /><br></div><div><br></div><div>And getting worse</div><div><img src="uploads/9068/2016-08-03_15-21-58.png" height="227" width="477" border="0" /><br></div><div><br></div><div><br></div><div>Here's the code that I used on MouseMove</div><div><table width="99%"><tr><td><pre class="BBcode">Private Sub TabControl1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As stdole.OLE_XPOS_PIXELS, ByVal y As stdole.OLE_YPOS_PIXELS)</div><div>&nbsp; With TabControl1</div><div>&nbsp; &nbsp; Dim item As TabControlItem</div><div>&nbsp; &nbsp; Set item = TabControl1.HitTest(x, y)</div><div>&nbsp; &nbsp; If Not item Is Nothing Then</div><div>&nbsp; &nbsp; &nbsp; FlatEdit1.Text = item.Caption &amp; vbTab &amp; item.Index</div><div>&nbsp; &nbsp; End If</div><div>&nbsp; End With</div><div>End Sub</pre></td></tr></table></div><div><br></div><div><br></div><div>It seems that I need to offset X and Y by some value but I am not sure how much. Any clue on this issue?</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 03 Aug 2016 09:28:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23085&amp;PID=74931&amp;title=solvedtabcontrol-hittest#74931</guid>
  </item> 
 </channel>
</rss>