<?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 : Mouse location to graph scale</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Chart Control : Mouse location to graph scale]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 21 May 2026 05:22:10 +0000</pubDate>
  <lastBuildDate>Thu, 20 Jun 2013 10:10:59 +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=21729</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[Mouse location to graph scale :  Hi, I&amp;#039;m trying to develop...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21729&amp;PID=71173&amp;title=mouse-location-to-graph-scale#71173</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8110">BLW</a><br /><strong>Subject:</strong> 21729<br /><strong>Posted:</strong> 20 June 2013 at 10:10am<br /><br />Hi, I'm trying to develop a drag-drop concept with a bar chart.&nbsp; We have a threshold parameter that we plot on the graph along with results.&nbsp; The idea is to allow the user to "grab" the threshold and drag it to a new setting directly on the graph.<div>&nbsp;</div><div>I have figured out most of the steps involved.&nbsp; But I have not been able to locate a conversion between a mouse location on the screen and an X-Y graph scale value.&nbsp; I'm using "HitTest()" to figure out which series and element is being pointed at.&nbsp; But that isn't quite what I need.&nbsp; I believe that I found some internal logic that might work (see specifics below), but I do not see how to get access to that information.</div><div>&nbsp;</div><div>In XTPChartStackedBarSeriesStyle.cpp, function GetScreenRect() they call a function GetScreenPoint() which converts a scaled XY value to image coordinates.&nbsp; From that I could compute the scale and get the drag-drop logic to work.&nbsp; But this is a Style operation and that appears to be dynamically created in OnPaint() and is not available to access.</div><div>&nbsp;</div><div>What I really need is a function similar to HitTest() to get the conversion back and forth between a screen location and scales series value.</div><div><br>Thank you,</div><div>&nbsp;</div><div>Brad</div>]]>
   </description>
   <pubDate>Thu, 20 Jun 2013 10:10:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21729&amp;PID=71173&amp;title=mouse-location-to-graph-scale#71173</guid>
  </item> 
 </channel>
</rss>