<?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 : How To Get Current Argument And Value?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Chart Control : How To Get Current Argument And Value?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 21 May 2026 04:29:19 +0000</pubDate>
  <lastBuildDate>Tue, 14 Feb 2012 02:59:20 +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=18484</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[How To Get Current Argument And Value? : I need this too!+1   ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18484&amp;PID=67609&amp;title=how-to-get-current-argument-and-value#67609</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 18484<br /><strong>Posted:</strong> 14 February 2012 at 2:59am<br /><br />I need this too!<br><br>+1<img src="http://forum.codejock.com/smileys/smiley20.gif" border="0" alt="Thumbs Up" title="Thumbs Up" /><br>]]>
   </description>
   <pubDate>Tue, 14 Feb 2012 02:59:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18484&amp;PID=67609&amp;title=how-to-get-current-argument-and-value#67609</guid>
  </item> 
  <item>
   <title><![CDATA[How To Get Current Argument And Value? :    Found a solution.You will...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18484&amp;PID=67602&amp;title=how-to-get-current-argument-and-value#67602</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7331">seanma</a><br /><strong>Subject:</strong> 18484<br /><strong>Posted:</strong> 13 February 2012 at 10:44am<br /><br />Found a solution.<br><br>You will need to define your own derived class of CXTPChartControl, for example myCXTPChartCtrl<br>and in your derived class, for example, you defined OnLButtonDblClk function,<br><br>void myCXTPChartCtrl::OnLButtonDblClk( UINT nFlags, CPoint point )<br>{<br>&nbsp;&nbsp; // here you get which point your mouse click at<br>&nbsp;&nbsp; CXTPChartElement* hit =&nbsp; HitTest ( point );<br><br>&nbsp;&nbsp; // if the hitted element is valid type<br>&nbsp;&nbsp; if( hit )<br>&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // if you want to check which data point your clicked on the chart series<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CXTPChartSeriesPoint* pPoint = DYNAMIC_DOWNCAST( CXTPChartSeriesPoint, hit );<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // if your hit is actually a point on the series<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( pPoint )<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // do whatever you want, for example, get the actual value<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double value = pPoint-&gt;GetArgumentValue();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>In the same way, you can get other types of element in the chart (for example, xAxis, yAxis, labels, chart series, markers, legends etc), remember everything is derived class of CXTPChartElement, so you only need to cast them to the type you want.<br><br>Happy coding!<br>]]>
   </description>
   <pubDate>Mon, 13 Feb 2012 10:44:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18484&amp;PID=67602&amp;title=how-to-get-current-argument-and-value#67602</guid>
  </item> 
  <item>
   <title><![CDATA[How To Get Current Argument And Value? : I have this exact, same issue....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18484&amp;PID=65886&amp;title=how-to-get-current-argument-and-value#65886</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3542">kyotocanuck</a><br /><strong>Subject:</strong> 18484<br /><strong>Posted:</strong> 11 August 2011 at 10:06pm<br /><br />I have this exact, same issue. Were you able to solve it? Ideally, all I want to do is click the chart and be able to determine which argument I clicked...]]>
   </description>
   <pubDate>Thu, 11 Aug 2011 22:06:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18484&amp;PID=65886&amp;title=how-to-get-current-argument-and-value#65886</guid>
  </item> 
  <item>
   <title><![CDATA[How To Get Current Argument And Value? : I&amp;#039;m using the chart control....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=18484&amp;PID=64692&amp;title=how-to-get-current-argument-and-value#64692</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6823">BleedX</a><br /><strong>Subject:</strong> 18484<br /><strong>Posted:</strong> 02 June 2011 at 3:41am<br /><br />I'm using the chart control. And set it's zoom and scroll true. <DIV>When i click the mouse on it, how can i get the argument and value about the current mouse positon?</DIV><DIV>Please help me if anyone knows. Thanks!</DIV>]]>
   </description>
   <pubDate>Thu, 02 Jun 2011 03:41:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=18484&amp;PID=64692&amp;title=how-to-get-current-argument-and-value#64692</guid>
  </item> 
 </channel>
</rss>